]> gitweb.factorcode.org Git - factor.git/commitdiff
math.parser: add a few more tests for number>string
authorJohn Benediktsson <mrjbq7@gmail.com>
Thu, 8 Feb 2024 01:25:14 +0000 (17:25 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Thu, 8 Feb 2024 01:25:14 +0000 (17:25 -0800)
core/math/parser/parser-tests.factor

index e14a801ca5d46d04fecb08f0f849b08da69610e1..9faa75870a15de4444516d3e4af215637114c898 100644 (file)
@@ -510,3 +510,7 @@ unit-test
 } [
     trouble CHAR: e 0 rot set-nth trouble drop
 ] unit-test
+
+{ "143.99999999999997" } [ 0x1.1ffffffffffffp7 number>string ] unit-test
+{ "144.0" } [ 0x1.2p7 number>string ] unit-test
+{ "144.00000000000003" } [ 0x1.2000000000001p7 number>string ] unit-test