diff options
Diffstat (limited to 'tests/typ/layout')
| -rw-r--r-- | tests/typ/layout/locate-group.typ | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/typ/layout/locate-group.typ b/tests/typ/layout/locate-group.typ index 49d4e335..5c022f5a 100644 --- a/tests/typ/layout/locate-group.typ +++ b/tests/typ/layout/locate-group.typ @@ -41,3 +41,22 @@ ))} As shown in #cite("abc") and #cite("def") and #cite("abc") ... + +--- +// Test that `all` contains `me`. +// Ref: false +#show it: heading as group("headings").entry( + (me, all) => { + let last + for prev in all { + last = prev + if prev.index == me.index { + break + } + } + assert(last == me) + } +) + += A +== B |
