]> gitweb.factorcode.org Git - factor.git/commitdiff
One more poker unit test dealing with equality
authorAaron Schaefer <aaron@elasticdog.com>
Mon, 6 Apr 2009 04:30:21 +0000 (00:30 -0400)
committerAaron Schaefer <aaron@elasticdog.com>
Mon, 6 Apr 2009 04:30:21 +0000 (00:30 -0400)
extra/poker/poker-tests.factor

index f7d9e4f6c3ce73679f238fdc46be4f8186f8935c..186297408477967c29939fb0460d92d5c559c7ea 100644 (file)
@@ -16,6 +16,8 @@ IN: poker.tests
 [ "Four of a Kind" ] [ "AC AD AH AS KC" <hand> >value ] unit-test
 [ "Straight Flush" ] [ "6C 5C 4C 3C 2C" <hand> >value ] unit-test
 
+[ "6C 5C 4C 3C 2C" ] [ "6C 5C 4C 3C 2C" <hand> >cards ] unit-test
+
 [ +gt+ ] [ "7C 5D 4H 3S 2C" "KD QS JC TH 9S" [ <hand> ] bi@ <=> ] unit-test
 [ +lt+ ] [ "AC AD AH AS KC" "KD QS JC TH 9S" [ <hand> ] bi@ <=> ] unit-test
 [ +eq+ ] [ "7C 5D 4H 3S 2C" "7D 5D 4D 3C 2S" [ <hand> ] bi@ <=> ] unit-test