summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/outline.pngbin40846 -> 40642 bytes
-rw-r--r--tests/suite/introspection/counter.typ12
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/ref/outline.png b/tests/ref/outline.png
index 71dd6e1a..c0d22969 100644
--- a/tests/ref/outline.png
+++ b/tests/ref/outline.png
Binary files differ
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))