

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.



 
templates palindrome
  [$...] -> #
  when <=$(last..first:-1)> do '$...;' !
end palindrome
 
test 'palindrome filter'
  assert 'rotor' -> palindrome <='rotor'> 'rotor is a palindrome'
  assert ['rosetta' -> palindrome] <=[]> 'rosetta is not a palindrome'
end 'palindrome filter'
 