Skip to content

Commit

Permalink
math.parser: add a few more tests for number>string
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjbq7 committed Feb 8, 2024
1 parent f2745e4 commit 34b16c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/math/parser/parser-tests.factor
Expand Up @@ -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

0 comments on commit 34b16c9

Please sign in to comment.