

Task

Using a well-known testing-specific library/module/suite for your language, write some tests for your language's entry in Palindrome.

If your language does not have a testing specific library well known to the language's community then state this or omit the language.



 
--unittest in standard library 4.0+
include std/unittest.e
include palendrome.e  --routines to be tested
 
object p = "12321"
 
test_equal("12321", 1, isPalindrome(p))
test_equal("r12321", 1, isPalindrome(reverse(p)))
 
test_report()
 
 