diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-12-30 10:01:37 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-12-30 10:01:37 +0100 |
| commit | 94cf7005e99a9055799a641ae6f00669c5ec7a63 (patch) | |
| tree | 463e262e86348f0cf04295dd4dcc83fba6f4a4ea /tests/typ/compiler/ops-invalid.typ | |
| parent | 68c6160a14be4e77b98cd704d9e641a03aefa332 (diff) | |
Forbid division by zero
Diffstat (limited to 'tests/typ/compiler/ops-invalid.typ')
| -rw-r--r-- | tests/typ/compiler/ops-invalid.typ | 12 |
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)} |
