RosettaCodeData/Task/Test-a-function/R/test-a-function.r
2023-07-01 13:44:08 -04:00

4 lines
184 B
R

checkTrue(palindroc("aba")) # TRUE
checkTrue(!palindroc("ab")) # TRUE
checkException(palindroc()) # TRUE
checkTrue(palindroc("")) # Error. Uh-oh, there's a bug in the function