

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.



NB. Contents of palindrome_test.ijs
 
NB. Basic testing
test_palinA=: monad define
  assert isPalin0 'abcba'
  assert isPalin0 'aa'
  assert isPalin0 ''
  assert -. isPalin0 'ab'
  assert -. isPalin0 'abcdba'
)
 
NB. Can test for expected failure instead
palinB_expect=: 'assertion failure'
test_palinB=: monad define
  assert isPalin0 'ab'
)