generic.parser: adding tests.

db4
John Benediktsson 2011-10-13 16:49:54 -07:00
parent 422f427a87
commit 7a36e50c6a
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
USING: generic.parser tools.test ;
IN: generic.parser.tests
[ t ] [ (( -- )) (( -- )) method-effect= ] unit-test
[ t ] [ (( a -- b )) (( x -- y )) method-effect= ] unit-test
[ f ] [ (( a b -- c )) (( x -- y )) method-effect= ] unit-test
[ f ] [ (( a -- b )) (( x y -- z )) method-effect= ] unit-test
[ t ] [ (( -- * )) (( -- )) method-effect= ] unit-test
[ f ] [ (( -- * )) (( x -- y )) method-effect= ] unit-test
[ t ] [ (( x -- * )) (( x -- y )) method-effect= ] unit-test
[ t ] [ (( x -- * )) (( x -- y z )) method-effect= ] unit-test