diff options
Diffstat (limited to 'tests/typ/compiler/packages.typ')
| -rw-r--r-- | tests/typ/compiler/packages.typ | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/tests/typ/compiler/packages.typ b/tests/typ/compiler/packages.typ deleted file mode 100644 index 0d3fda58..00000000 --- a/tests/typ/compiler/packages.typ +++ /dev/null @@ -1,69 +0,0 @@ -// Test package imports -// Ref: false - ---- -// Test import without items. -#import "@test/adder:0.1.0" -#test(adder.add(2, 8), 10) - ---- -// Test import with items. -#import "@test/adder:0.1.0": add -#test(add(2, 8), 10) - ---- -// Test too high required compiler version. -// Error: 9-29 package requires typst 1.0.0 or newer (current version is VERSION) -#import "@test/future:0.1.0": future - ---- -// Error: 9-13 `@` is not a valid package namespace -#import "@@": * - ---- -// Error: 9-16 package specification is missing name -#import "@heya": * - ---- -// Error: 9-15 `123` is not a valid package namespace -#import "@123": * - ---- -// Error: 9-17 package specification is missing name -#import "@test/": * - ---- -// Error: 9-22 package specification is missing version -#import "@test/mypkg": * - ---- -// Error: 9-20 `$$$` is not a valid package name -#import "@test/$$$": * - ---- -// Error: 9-23 package specification is missing version -#import "@test/mypkg:": * - ---- -// Error: 9-24 version number is missing minor version -#import "@test/mypkg:0": * - ---- -// Error: 9-29 `latest` is not a valid major version -#import "@test/mypkg:latest": * - ---- -// Error: 9-29 `-3` is not a valid major version -#import "@test/mypkg:-3.0.0": * - ---- -// Error: 9-26 version number is missing patch version -#import "@test/mypkg:0.3": * - ---- -// Error: 9-27 version number is missing patch version -#import "@test/mypkg:0.3.": * - ---- -// Error: 9-28 file not found (searched at typ/compiler/#test/mypkg:1.0.0) -#import "#test/mypkg:1.0.0": * |
