diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-04-13 10:39:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-13 08:39:45 +0000 |
| commit | 020294fca9a7065d4b9cf4e677f606ebaaa29b00 (patch) | |
| tree | c0027ad22046e2726c22298461327823d6b88d53 /tests/typ/compiler/plugin.typ | |
| parent | 72dd79210602ecc799726fc096b078afbb47f299 (diff) | |
Better test runner (#3922)
Diffstat (limited to 'tests/typ/compiler/plugin.typ')
| -rw-r--r-- | tests/typ/compiler/plugin.typ | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/tests/typ/compiler/plugin.typ b/tests/typ/compiler/plugin.typ deleted file mode 100644 index e727355f..00000000 --- a/tests/typ/compiler/plugin.typ +++ /dev/null @@ -1,36 +0,0 @@ -// Test WebAssembly plugins. -// Ref: false - ---- -#let p = plugin("/assets/plugins/hello.wasm") -#test(p.hello(), bytes("Hello from wasm!!!")) -#test(p.double_it(bytes("hey!")), bytes("hey!.hey!")) -#test( - p.shuffle(bytes("value1"), bytes("value2"), bytes("value3")), - bytes("value3-value1-value2"), -) - ---- -#let p = plugin("/assets/plugins/hello.wasm") - -// Error: 2-20 plugin function takes 0 arguments, but 1 was given -#p.hello(bytes("")) - ---- -#let p = plugin("/assets/plugins/hello.wasm") - -// Error: 10-14 expected bytes, found boolean -// Error: 27-29 expected bytes, found integer -#p.hello(true, bytes(()), 10) - ---- -#let p = plugin("/assets/plugins/hello.wasm") - -// Error: 2-17 plugin errored with: This is an `Err` -#p.returns_err() - ---- -#let p = plugin("/assets/plugins/hello.wasm") - -// Error: 2-16 plugin panicked: wasm `unreachable` instruction executed -#p.will_panic() |
