diff options
Diffstat (limited to 'tests/suite/foundations/panic.typ')
| -rw-r--r-- | tests/suite/foundations/panic.typ | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/suite/foundations/panic.typ b/tests/suite/foundations/panic.typ new file mode 100644 index 00000000..5d9d4046 --- /dev/null +++ b/tests/suite/foundations/panic.typ @@ -0,0 +1,14 @@ +--- panic --- +// Test panic. +// Error: 2-9 panicked +#panic() + +--- panic-with-int --- +// Test panic. +// Error: 2-12 panicked with: 123 +#panic(123) + +--- panic-with-str --- +// Test panic. +// Error: 2-24 panicked with: "this is wrong" +#panic("this is wrong") |
