diff options
| author | Johann Birnick <6528009+jbirnick@users.noreply.github.com> | 2024-08-05 13:02:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-05 11:02:04 +0000 |
| commit | 211b546e4e4c75caaa6ee31493d52802b898aa2a (patch) | |
| tree | 24fcdf449af13505743ab21a560fc372764c4dd9 /tests/suite/introspection/counter.typ | |
| parent | 9909f12d4f599674055a6d0c775d573d315b89b8 (diff) | |
Fixes counter stepping behavior (#4631)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
Diffstat (limited to 'tests/suite/introspection/counter.typ')
| -rw-r--r-- | tests/suite/introspection/counter.typ | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/suite/introspection/counter.typ b/tests/suite/introspection/counter.typ index be17d7e0..0d2be6e2 100644 --- a/tests/suite/introspection/counter.typ +++ b/tests/suite/introspection/counter.typ @@ -104,3 +104,15 @@ At Beta, it was #context { #block(foo()) #block(foo()) #foo() + +--- issue-4626-counter-depth-skip --- +// When we step and skip a level, the levels should be filled with zeros, not +// with ones. +#let c = counter("c") +#context test(c.get(), (0,)) +#c.step(level: 4) +#context test(c.get(), (0, 0, 0, 1)) +#c.step(level: 1) +#context test(c.get(), (1,)) +#c.step(level: 3) +#context test(c.get(), (1, 0, 1)) |
