summaryrefslogtreecommitdiff
path: root/tests/typ/compiler/import.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-09-11 14:42:43 +0200
committerLaurenz <laurmaedje@gmail.com>2023-09-11 14:42:43 +0200
commit305524d005df075d53575552ee090fb53192a3fe (patch)
tree08b739e8fc41057b79a2d7ea7a7208ca358d60b3 /tests/typ/compiler/import.typ
parentb471ac7d590abd2398ce25193b4e4df373bf2e9c (diff)
Update tests for type system changes
Diffstat (limited to 'tests/typ/compiler/import.typ')
-rw-r--r--tests/typ/compiler/import.typ14
1 files changed, 6 insertions, 8 deletions
diff --git a/tests/typ/compiler/import.typ b/tests/typ/compiler/import.typ
index e5a7a858..fb7a06b8 100644
--- a/tests/typ/compiler/import.typ
+++ b/tests/typ/compiler/import.typ
@@ -116,12 +116,10 @@
---
// Usual importing syntax also works for function scopes
-#import enum
#let d = (e: enum)
#import d.e
#import d.e as renamed
#import d.e: item
-
#item(2)[a]
---
@@ -166,11 +164,11 @@
#import () => {5}: x
---
-// Error: 9-10 expected path, module or function, found integer
+// Error: 9-10 expected path, module, function, or type, found integer
#import 5: something
---
-// Error: 9-10 expected path, module or function, found integer
+// Error: 9-10 expected path, module, function, or type, found integer
#import 5 as x
---
@@ -213,14 +211,14 @@ This is never reached.
---
// Renaming does not import the old name (without items).
#import "module.typ" as something
-// Error: 7-13 unknown variable: module
-#test(module.b, 1)
+// Error: 7-12 unknown variable: mymod
+#test(mymod.b, 1)
---
// Renaming does not import the old name (with items).
#import "module.typ" as something: b as other
-// Error: 7-13 unknown variable: module
-#test(module.b, 1)
+// Error: 7-12 unknown variable: mymod
+#test(mymod.b, 1)
---
// Error: 8 expected expression