

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.



 
class TestPalindrome : Test
{
  public Void testIsPalindrome ()
  {
    verify(Palindrome.isPalindrome(""))
    verify(Palindrome.isPalindrome("a"))
    verify(Palindrome.isPalindrome("aa"))
    verify(Palindrome.isPalindrome("aba"))
    verifyFalse(Palindrome.isPalindrome("abb"))
    verify(Palindrome.isPalindrome("salàlas"))
    verify(Palindrome.isPalindrome("In girum imus nocte et consumimur igni".lower.replace(" ","")))
  }
}
 