From 34b16c93685513adc318d6512b89e083ef808652 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Wed, 7 Feb 2024 17:25:14 -0800 Subject: [PATCH] math.parser: add a few more tests for number>string --- core/math/parser/parser-tests.factor | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/math/parser/parser-tests.factor b/core/math/parser/parser-tests.factor index e14a801ca5d..9faa75870a1 100644 --- a/core/math/parser/parser-tests.factor +++ b/core/math/parser/parser-tests.factor @@ -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