diff options
| author | Sébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com> | 2023-11-17 10:39:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-17 10:39:08 +0100 |
| commit | 5aaaacbf472fc71295d4e4a26615d941a4d92a00 (patch) | |
| tree | e9cfca891564c5d0ea246815c393445695a3372a /tests | |
| parent | 624ff5cb7a80945ac2fed7e2ad266214542183f2 (diff) | |
Allow `elem` synthesized fields to take a default value (#2687)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typ/bugs/subelement-panic.typ | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/typ/bugs/subelement-panic.typ b/tests/typ/bugs/subelement-panic.typ new file mode 100644 index 00000000..fcad83bc --- /dev/null +++ b/tests/typ/bugs/subelement-panic.typ @@ -0,0 +1,40 @@ +// Test that figure captions don't cause panics. +// Ref: false + +--- +// #2530 +#figure(caption: [test])[].caption + +--- +// #2165 +#figure.caption[] + +--- +// #2328 +// Error: 4-43 footnote entry must have a location +// Hint: 4-43 try using a query or a show rule to customize the footnote instead +HI#footnote.entry(clearance: 2.5em)[There] + +--- +// Enum item (pre-emptive) +#enum.item(none)[Hello] +#enum.item(17)[Hello] + +--- +// List item (pre-emptive) +#list.item[Hello] + +--- +// Term item (pre-emptive) +#terms.item[Hello][World!] + +--- +// Outline entry (pre-emptive) +// Error: 2-48 cannot outline text +#outline.entry(1, [Hello], [World!], none, [1]) + +--- +// Outline entry (pre-emptive, improved error) +// Error: 2-55 heading must have a location +// Hint: 2-55 try using a query or a show rule to customize the outline.entry instead +#outline.entry(1, heading[Hello], [World!], none, [1]) |
