Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Test-a-function/Retro/test-a-function.retro
Normal file
10
Task/Test-a-function/Retro/test-a-function.retro
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
needs assertion'
|
||||
needs hash'
|
||||
|
||||
: palindrome? ( $-f ) dup ^hash'hash [ ^strings'reverse ^hash'hash ] dip = ;
|
||||
|
||||
with assertion'
|
||||
: t0 ( - ) "hello" palindrome? 0 assert= ; assertion
|
||||
: t1 ( - ) "ingirumimusnocteetconsumimurigni" palindrome? -1 assert= ; assertion
|
||||
: test ( - ) t0 t1 ;
|
||||
test
|
||||
Loading…
Add table
Add a link
Reference in a new issue