fix unit test
parent
0d75418048
commit
5c9ce929c7
|
@ -1,4 +1,5 @@
|
|||
USING: accessors kernel math.order poker poker.private tools.test ;
|
||||
USING: accessors kernel math math.order poker poker.private
|
||||
tools.test ;
|
||||
IN: poker.tests
|
||||
|
||||
[ 134236965 ] [ "KD" >ckf ] unit-test
|
||||
|
|
|
@ -260,5 +260,8 @@ ERROR: bad-suit-symbol ch ;
|
|||
: value>hand-name ( value -- string )
|
||||
value>rank VALUE_STR nth ;
|
||||
|
||||
: string>hand-name ( string -- string' )
|
||||
string>value value>hand-name ;
|
||||
|
||||
SYNTAX: HAND{
|
||||
"}" parse-tokens [ card> ] { } map-as suffix! ;
|
||||
|
|
Loading…
Reference in New Issue