]> gitweb.factorcode.org Git - factor.git/commitdiff
json: update old unit test for -0 => -0.0
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 29 Oct 2023 17:33:22 +0000 (12:33 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 29 Oct 2023 17:33:22 +0000 (12:33 -0500)
basis/json/json-tests.factor

index 469fe34aca8e721736988ab79bc0428e726d6c1a..662c866113085d90b57e49d15e2ac3a4b6824860 100644 (file)
@@ -11,7 +11,7 @@ IN: json.tests
 { t } [ "true" json> ] unit-test
 { json-null } [ "null" json> ] unit-test
 { 0 } [ "0" json> ] unit-test
-{ 0 } [ "-0" json> ] unit-test
+{ -0.0 } [ "-0" json> ] unit-test
 { 102 } [ "102" json> ] unit-test
 { -102 } [ "-102" json> ] unit-test
 { 102 } [ "+102" json> ] unit-test
@@ -33,7 +33,6 @@ IN: json.tests
 ! not widely supported by javascript, but allowed in the grammar, and a nice
 ! feature to get
 { -0.0 } [ "-0.0" json> ] unit-test
-{ -0.0 } [ "-0" json> ] unit-test
 
 { " fuzzy  pickles " } [ "  \" fuzzy  pickles \" "  json> ] unit-test
 { "while 1:\n\tpass" } [ "  \"while 1:\n\tpass\" "  json> ] unit-test