diff options
Diffstat (limited to 'tests/typ/compute')
| -rw-r--r-- | tests/typ/compute/calc.typ | 6 | ||||
| -rw-r--r-- | tests/typ/compute/construct.typ | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/tests/typ/compute/calc.typ b/tests/typ/compute/calc.typ index 536c637a..24411ecf 100644 --- a/tests/typ/compute/calc.typ +++ b/tests/typ/compute/calc.typ @@ -7,10 +7,16 @@ #test(int(true), 1) #test(int(10), 10) #test(int("150"), 150) +#test(int("-834"), -834) +#test(int("\u{2212}79"), -79) #test(int(10 / 3), 3) #test(float(10), 10.0) #test(float(50% * 30%), 0.15) #test(float("31.4e-1"), 3.14) +#test(float("31.4e\u{2212}1"), 3.14) +#test(float("3.1415"), 3.1415) +#test(float("-7654.321"), -7654.321) +#test(float("\u{2212}7654.321"), -7654.321) #test(type(float(10)), float) --- diff --git a/tests/typ/compute/construct.typ b/tests/typ/compute/construct.typ index 6980c922..d5ded96a 100644 --- a/tests/typ/compute/construct.typ +++ b/tests/typ/compute/construct.typ @@ -162,7 +162,7 @@ // Test conversion to string. #test(str(123), "123") #test(str(123, base: 3), "11120") -#test(str(-123, base: 16), "-7b") +#test(str(-123, base: 16), "−7b") #test(str(9223372036854775807, base: 36), "1y2p0ij32e8e7") #test(str(50.14), "50.14") #test(str(10 / 3).len() > 10, true) |
