summaryrefslogtreecommitdiff
path: root/tests/typ/expr/array.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-05-18 00:36:11 +0200
committerLaurenz <laurmaedje@gmail.com>2021-05-18 00:36:11 +0200
commit8b58171d7ca036d71b32749286c251cc91bdd10e (patch)
tree4594ab5088edf8eec44f3bafe3fb8fecb13ac61b /tests/typ/expr/array.typ
parent8d67c0ca5eb3486dde97fd281bd4a51d535c600c (diff)
Reorganize test cases
Diffstat (limited to 'tests/typ/expr/array.typ')
-rw-r--r--tests/typ/expr/array.typ43
1 files changed, 0 insertions, 43 deletions
diff --git a/tests/typ/expr/array.typ b/tests/typ/expr/array.typ
deleted file mode 100644
index c9383501..00000000
--- a/tests/typ/expr/array.typ
+++ /dev/null
@@ -1,43 +0,0 @@
-// Test arrays.
-
----
-// Empty.
-{()}
-
-// Not an array, just a parenthesized expression.
-{(1)}
-
-// One item and trailing comma.
-{(-1,)}
-
-// No trailing comma.
-{(true, false)}
-
-// Multiple lines and items and trailing comma.
-{("1"
- , #002
- ,)}
-
-// Error: 3 expected closing paren
-{(}
-
-// Error: 2-3 expected expression, found closing paren
-{)}
-
-// Error: 2:4 expected comma
-// Error: 1:4-1:6 expected expression, found end of block comment
-{(1*/2)}
-
-// Error: 6-8 expected expression, found invalid token
-{(1, 1u 2)}
-
-// Error: 3-4 expected expression, found comma
-{(,1)}
-
-// Missing expression makes named pair incomplete, making this an empty array.
-// Error: 5 expected expression
-{(a:)}
-
-// Named pair after this is already identified as an array.
-// Error: 6-10 expected expression, found named pair
-{(1, b: 2)}