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
|
IN: poker.tests
|
||||||
|
|
||||||
[ 134236965 ] [ "KD" >ckf ] unit-test
|
[ 134236965 ] [ "KD" >ckf ] unit-test
|
||||||
|
|
|
@ -260,5 +260,8 @@ ERROR: bad-suit-symbol ch ;
|
||||||
: value>hand-name ( value -- string )
|
: value>hand-name ( value -- string )
|
||||||
value>rank VALUE_STR nth ;
|
value>rank VALUE_STR nth ;
|
||||||
|
|
||||||
|
: string>hand-name ( string -- string' )
|
||||||
|
string>value value>hand-name ;
|
||||||
|
|
||||||
SYNTAX: HAND{
|
SYNTAX: HAND{
|
||||||
"}" parse-tokens [ card> ] { } map-as suffix! ;
|
"}" parse-tokens [ card> ] { } map-as suffix! ;
|
||||||
|
|
Loading…
Reference in New Issue