From c7db709da53e0559adabc99d483a374224ef5ce8 Mon Sep 17 00:00:00 2001 From: Eric Biedert Date: Tue, 11 Apr 2023 14:13:01 +0200 Subject: Allow treating ratios as floats (#681) --- tests/typ/compute/calc.typ | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/typ/compute/calc.typ b/tests/typ/compute/calc.typ index 31c5c967..18c2e2c9 100644 --- a/tests/typ/compute/calc.typ +++ b/tests/typ/compute/calc.typ @@ -9,6 +9,7 @@ #test(int("150"), 150) #test(int(10 / 3), 3) #test(float(10), 10.0) +#test(float(50% * 30%), 0.15) #test(float("31.4e-1"), 3.14) #test(type(float(10)), "float") @@ -21,7 +22,7 @@ #int(10pt) --- -// Error: 8-13 expected boolean, integer, float, or string, found function +// Error: 8-13 expected boolean, integer, float, ratio, or string, found function #float(float) --- -- cgit v1.2.3