]> gitweb.factorcode.org Git - factor.git/commitdiff
floating point test fix
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 2 Sep 2008 20:09:14 +0000 (15:09 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 2 Sep 2008 20:09:14 +0000 (15:09 -0500)
extra/json/reader/reader-tests.factor

index 4b7bd56f01c99e08f5b57266e499f2aec6b5e270..995ae0e0b8b8027014d4c1303a5585f62330e3b1 100644 (file)
@@ -11,9 +11,9 @@ IN: json.reader.tests
 { 102.0 } [ "102.0" json> ] unit-test
 { 102.5 } [ "102.5" json> ] unit-test
 { 102.5 } [ "102.50" json> ] unit-test
-{ -10250 } [ "-102.5e2" json> ] unit-test
-{ -10250 } [ "-102.5E+2" json> ] unit-test
-{ 10.25 } [ "1025e-2" json> ] unit-test
+{ -10250.0 } [ "-102.5e2" json> ] unit-test
+{ -10250.0 } [ "-102.5E+2" json> ] unit-test
+{ 10+1/4 } [ "1025e-2" json> ] unit-test
 { 0.125 } [ "0.125" json> ] unit-test
 { -0.125 } [ "-0.125" json> ] unit-test