summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEric Biedert <github@ericbiedert.de>2023-04-11 14:13:01 +0200
committerGitHub <noreply@github.com>2023-04-11 14:13:01 +0200
commitc7db709da53e0559adabc99d483a374224ef5ce8 (patch)
tree22ab5ce508bb1ba6aafd9b2c61066069b9e771ab /tests
parentef50f1b011af61d7f145fcbb25e90fb002d5f785 (diff)
Allow treating ratios as floats (#681)
Diffstat (limited to 'tests')
-rw-r--r--tests/typ/compute/calc.typ3
1 files changed, 2 insertions, 1 deletions
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)
---