Fix code for floats syntax change
parent
b6ee0dca3b
commit
30a44225cd
|
@ -8,7 +8,7 @@ IN: lcs
|
|||
0 1 ? + [ [ 1+ ] bi@ ] dip min min ;
|
||||
|
||||
: lcs-step ( insert delete change same? -- next )
|
||||
1 -1./0. ? + max max ; ! -1./0. is -inf (float)
|
||||
1 -1/0. ? + max max ; ! -1/0. is -inf (float)
|
||||
|
||||
:: loop-step ( i j matrix old new step -- )
|
||||
i j 1+ matrix nth nth ! insertion
|
||||
|
|
|
@ -227,7 +227,7 @@ unit-test
|
|||
[ -3 10 nth ] must-fail
|
||||
[ 11 10 nth ] must-fail
|
||||
|
||||
[ -1./0. 0 delete-nth ] must-fail
|
||||
[ -1/0. 0 delete-nth ] must-fail
|
||||
[ "" ] [ "" [ CHAR: \s = ] trim ] unit-test
|
||||
[ "" ] [ "" [ CHAR: \s = ] trim-head ] unit-test
|
||||
[ "" ] [ "" [ CHAR: \s = ] trim-tail ] unit-test
|
||||
|
|
Loading…
Reference in New Issue