summaryrefslogtreecommitdiff
path: root/tests/typ/code
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/code')
-rw-r--r--tests/typ/code/ops-invalid.typ6
-rw-r--r--tests/typ/code/ops.typ12
2 files changed, 1 insertions, 17 deletions
diff --git a/tests/typ/code/ops-invalid.typ b/tests/typ/code/ops-invalid.typ
index 1355181a..91dd576f 100644
--- a/tests/typ/code/ops-invalid.typ
+++ b/tests/typ/code/ops-invalid.typ
@@ -53,7 +53,7 @@
---
{
let x = 2
- for _ in 0..61 {
+ for _ in range(61) {
x *= 2
}
// Error: 4-18 cannot repeat this string 4611686018427387904 times
@@ -73,10 +73,6 @@
{ 1 with () }
---
-// Error: 3-10 cannot apply '..' to integer and string
-{ 1 .. "" }
-
----
// Error: 3-6 cannot access this expression mutably
{ (x) = "" }
diff --git a/tests/typ/code/ops.typ b/tests/typ/code/ops.typ
index 149837b2..61d1ce38 100644
--- a/tests/typ/code/ops.typ
+++ b/tests/typ/code/ops.typ
@@ -162,18 +162,6 @@
{ x += "thing" } #test(x, "something")
---
-// Test range operator.
-
-#let array = (1, 2, 3)
-#test(1..4, array)
-#test(1.. 4, array)
-#test(1 ..4, array)
-#test(1 .. 4, array)
-
-#test(-4..2, (-4, -3, -2, -1, 0, 1))
-#test(10..5, ())
-
----
// Test with operator.
// Ref: true