Revert "lists: Add list literal doc example."
[factor.git] / extra / 24-game / 24-game-tests.factor
blob959001b087c0a69614bdd9a2a4d98980bd6e0d9b
1 USING: 24-game io.streams.string kernel math sequences
2 tools.test ;
4 { t } [ make-24 first4 makes-24? ] unit-test
6 { f } [ (operators) "hello" find-operator ] unit-test
8 { + } [ "+" [ (operators) get-operator ] with-string-reader ] unit-test
10 { swap } [
11     "bad\ninput\nswap" [ (operators) get-operator ] with-string-reader
12 ] unit-test