summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-12-02 16:28:41 +0100
committerJo-Philipp Wich <jo@mein.io>2022-12-02 16:28:41 +0100
commit46d93c9cc5da6fce581df86159bd0fc4357de41c (patch)
tree61bdcc3c13e20c1675b8a4016bff5b80e33450f5 /tests
parent4c654df1cb5d43336336142fefdbf7a3d1bf07cf (diff)
tests: fixup testcases
Adjust expected testcase outputs after double format change in the previous commit. Fixes: 4c654df ("types: adjust double printing format") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/custom/00_syntax/10_numeric_literals4
-rw-r--r--tests/custom/00_syntax/26_exponentiation4
-rw-r--r--tests/custom/01_arithmetic/01_division4
-rw-r--r--tests/custom/03_stdlib/34_json2
4 files changed, 7 insertions, 7 deletions
diff --git a/tests/custom/00_syntax/10_numeric_literals b/tests/custom/00_syntax/10_numeric_literals
index a19bbd5..82042d7 100644
--- a/tests/custom/00_syntax/10_numeric_literals
+++ b/tests/custom/00_syntax/10_numeric_literals
@@ -11,8 +11,8 @@ Float literals: 10, 10.3, 1.23456e-65, 16.0625
Octal literals: 63, 118
Binary literals: 7, 11
Special values: Infinity, Infinity, NaN, NaN
-Minimum values: -9223372036854775808, -1.79769e+308
-Maximum values: 9223372036854775807, 1.79769e+308
+Minimum values: -9223372036854775808, -1.7976931348623e+308
+Maximum values: 9223372036854775807, 1.7976931348623e+308
Minimum truncation: -9223372036854775808, -Infinity
Maximum truncation: 18446744073709551615, Infinity
-- End --
diff --git a/tests/custom/00_syntax/26_exponentiation b/tests/custom/00_syntax/26_exponentiation
index 1aab257..f361870 100644
--- a/tests/custom/00_syntax/26_exponentiation
+++ b/tests/custom/00_syntax/26_exponentiation
@@ -12,7 +12,7 @@ the power of the second operand.
9223372036854775808,
-9223372036854775808,
-0.25,
- 2.75568
+ 2.7556759606311
]
-- End --
@@ -37,7 +37,7 @@ power value in the rhs expression.
[
4,
-0.25,
- 2.75568
+ 2.7556759606311
]
-- End --
diff --git a/tests/custom/01_arithmetic/01_division b/tests/custom/01_arithmetic/01_division
index d4a2adb..9e08f38 100644
--- a/tests/custom/01_arithmetic/01_division
+++ b/tests/custom/01_arithmetic/01_division
@@ -23,8 +23,8 @@ If both operands are integers, integer division is performed:
10 / 3 = 3
If either operand is a double, double division is performed:
-10.0 / 3 = 3.33333
-10 / 3.0 = 3.33333
+10.0 / 3 = 3.3333333333333
+10 / 3.0 = 3.3333333333333
-- End --
-- Testcase --
diff --git a/tests/custom/03_stdlib/34_json b/tests/custom/03_stdlib/34_json
index c30d6d0..18b0ae4 100644
--- a/tests/custom/03_stdlib/34_json
+++ b/tests/custom/03_stdlib/34_json
@@ -31,7 +31,7 @@ true
false
123
456.789
--1.4e+10
+-14000000000
Infinity
A string ☀
[ 1, 2, 3 ]