summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/typ/compiler/ops-invalid.typ12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/typ/compiler/ops-invalid.typ b/tests/typ/compiler/ops-invalid.typ
index 3e9e5478..3d41a3d1 100644
--- a/tests/typ/compiler/ops-invalid.typ
+++ b/tests/typ/compiler/ops-invalid.typ
@@ -34,6 +34,18 @@
{1em <= 10pt}
---
+// Error: 2-11 cannot divide by zero
+{1.2 / 0.0}
+
+---
+// Error: 2-7 cannot divide by zero
+{1 / 0}
+
+---
+// Error: 2-14 cannot divide by zero
+{15deg / 0deg}
+
+---
// Special messages for +, -, * and /.
// Error: 03-10 cannot add integer and string
{(1 + "2", 40% - 1)}