From 9ef1cc2424e5afa21d3980b56046f5fb71bff89f Mon Sep 17 00:00:00 2001 From: _ov4 Date: Thu, 22 Oct 2026 15:20:26 +0000 Subject: feat(output)!: print REAL values in shortest round-trip form OUTPUT and NUM_TO_STR now share Python repr formatting instead of %f. BREAKING CHANGE: REAL output changes from six fixed decimals (2.500000) to the shortest round-trip text (2.5). Co-Authored-By: Claude Sonnet 5.5 --- tests/i/template-classes/expected.txt | 4 ++-- tests/i/template-explicit-args/expected.txt | 6 +++--- tests/i/template-functions/expected.txt | 2 +- tests/i/template-variadic/expected.txt | 6 +++--- tests/library/exp-string/expected.txt | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) (limited to 'tests') diff --git a/tests/i/template-classes/expected.txt b/tests/i/template-classes/expected.txt index 9413c45..6c891be 100644 --- a/tests/i/template-classes/expected.txt +++ b/tests/i/template-classes/expected.txt @@ -2,7 +2,7 @@ FALSE 0 7 3 -2.500000 +2.5 30 20 10 @@ -11,5 +11,5 @@ FALSE alpha beta 1 -2.500000 +2.5 c diff --git a/tests/i/template-explicit-args/expected.txt b/tests/i/template-explicit-args/expected.txt index 1c46cb5..5e2993d 100644 --- a/tests/i/template-explicit-args/expected.txt +++ b/tests/i/template-explicit-args/expected.txt @@ -1,8 +1,8 @@ -2.000000 +2.0 3 tail -0.000000 -2.500000 +0.0 +2.5 9 200 100 diff --git a/tests/i/template-functions/expected.txt b/tests/i/template-functions/expected.txt index 0f27430..72f49e8 100644 --- a/tests/i/template-functions/expected.txt +++ b/tests/i/template-functions/expected.txt @@ -1,5 +1,5 @@ 7 -2.500000 +2.5 pear 3 42 diff --git a/tests/i/template-variadic/expected.txt b/tests/i/template-variadic/expected.txt index a3177f6..f776296 100644 --- a/tests/i/template-variadic/expected.txt +++ b/tests/i/template-variadic/expected.txt @@ -1,11 +1,11 @@ 1 -2.500000 +2.5 c str 1 -2.500000 +2.5 7 -3.500000 +3.5 30 10 20 diff --git a/tests/library/exp-string/expected.txt b/tests/library/exp-string/expected.txt index 030a4c2..3211dab 100644 --- a/tests/library/exp-string/expected.txt +++ b/tests/library/exp-string/expected.txt @@ -3,7 +3,7 @@ helloworld 3 20500 20500 -421.250000 +421.25 TRUE conversion caught length caught -- cgit v1.3.1-4-g156e