diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-22 15:20:26 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-22 15:20:26 +0000 |
| commit | 9ef1cc2424e5afa21d3980b56046f5fb71bff89f (patch) | |
| tree | 7b1fff9f3114601e3fa7a29ecc9e31481a4bccf6 /tests | |
| parent | 5c491c54a22044ef1570c3fb709e14264e367fb1 (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/i/template-classes/expected.txt | 4 | ||||
| -rw-r--r-- | tests/i/template-explicit-args/expected.txt | 6 | ||||
| -rw-r--r-- | tests/i/template-functions/expected.txt | 2 | ||||
| -rw-r--r-- | tests/i/template-variadic/expected.txt | 6 | ||||
| -rw-r--r-- | tests/library/exp-string/expected.txt | 2 |
5 files changed, 10 insertions, 10 deletions
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 |
