]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix code for floats syntax change
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 14 Apr 2009 20:04:58 +0000 (15:04 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 14 Apr 2009 20:04:58 +0000 (15:04 -0500)
basis/lcs/lcs.factor
core/sequences/sequences-tests.factor

index 8c67590697a603698d9a9ac48736efce9204ca57..d32b1998738bf76e7dc17bf03ee59c5d96d1238a 100644 (file)
@@ -8,7 +8,7 @@ IN: lcs
     0 1 ? + [ [ 1+ ] bi@ ] dip min min ;\r
 \r
 : lcs-step ( insert delete change same? -- next )\r
-    1 -1./0. ? + max max ; ! -1./0. is -inf (float)\r
+    1 -1/0. ? + max max ; ! -1/0. is -inf (float)\r
 \r
 :: loop-step ( i j matrix old new step -- )\r
     i j 1+ matrix nth nth ! insertion\r
index da495f410fb62ae0a23adf304553a330b1e472dc..85f9d5659652eeacff10cc958d67f868b33b1d1a 100644 (file)
@@ -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