diff options
Diffstat (limited to 'tests/suite')
| -rw-r--r-- | tests/suite/foundations/float.typ | 18 | ||||
| -rw-r--r-- | tests/suite/scripting/ops.typ | 4 |
2 files changed, 11 insertions, 11 deletions
diff --git a/tests/suite/foundations/float.typ b/tests/suite/foundations/float.typ index 206013ac..01769260 100644 --- a/tests/suite/foundations/float.typ +++ b/tests/suite/foundations/float.typ @@ -18,7 +18,7 @@ --- float-is-nan --- // Test float `is-nan()`. -#test(float(calc.nan).is-nan(), true) +#test(float(float.nan).is-nan(), true) #test(float(10).is-nan(), false) #test(float(calc.inf).is-nan(), false) #test(float(-calc.inf).is-nan(), false) @@ -29,7 +29,7 @@ #test(float(-calc.inf).is-infinite(), true) #test(float(10).is-infinite(), false) #test(float(-10).is-infinite(), false) -#test(float(calc.nan).is-infinite(), false) +#test(float(float.nan).is-infinite(), false) --- float-signum --- // Test float `signum()` @@ -40,7 +40,7 @@ #test(float(-10.0).signum(), -1.0) #test(float(calc.inf).signum(), 1.0) #test(float(-calc.inf).signum(), -1.0) -#test(float(calc.nan).signum().is-nan(), true) +#test(float(float.nan).signum().is-nan(), true) --- float-repr --- // Test the `repr` function with floats. @@ -55,9 +55,9 @@ #repr(-0987654321.0) \ #repr(-3.14) \ #repr(4.0 - 8.0) \ -#repr(calc.inf) \ -#repr(-calc.inf) \ -#repr(calc.nan) +#repr(float.inf) \ +#repr(-float.inf) \ +#repr(float.nan) --- float-display --- // Test floats. @@ -72,6 +72,6 @@ #(-0987654321.0) \ #(-3.14) \ #(4.0 - 8.0) \ -#calc.inf \ -#(-calc.inf) \ -#calc.nan +#float.inf \ +#(-float.inf) \ +#float.nan diff --git a/tests/suite/scripting/ops.typ b/tests/suite/scripting/ops.typ index 0df4b82d..1c957217 100644 --- a/tests/suite/scripting/ops.typ +++ b/tests/suite/scripting/ops.typ @@ -335,7 +335,7 @@ #(1em <= 10pt) --- ops-compare-normal-float-with-nan --- -// Error: 3-22 cannot compare 2.2 with calc.nan +// Error: 3-22 cannot compare 2.2 with float.nan #(2.2 <= float("nan")) --- ops-compare-int-and-str --- @@ -343,7 +343,7 @@ #((0, 1, 3) > (0, 1, "a")) --- ops-compare-array-nested-failure --- -// Error: 3-42 cannot compare 3.5 with calc.nan +// Error: 3-42 cannot compare 3.5 with float.nan #((0, "a", 3.5) <= (0, "a", float("nan"))) --- ops-divide-by-zero-float --- |
