summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/library/stack.pngbin0 -> 264 bytes
-rw-r--r--tests/typ/library/stack.typ9
2 files changed, 9 insertions, 0 deletions
diff --git a/tests/ref/library/stack.png b/tests/ref/library/stack.png
new file mode 100644
index 00000000..684905f7
--- /dev/null
+++ b/tests/ref/library/stack.png
Binary files differ
diff --git a/tests/typ/library/stack.typ b/tests/typ/library/stack.typ
new file mode 100644
index 00000000..c773ec79
--- /dev/null
+++ b/tests/typ/library/stack.typ
@@ -0,0 +1,9 @@
+// Test the `stack` function.
+
+---
+#let rect(width, color) = rect(width: width, height: 1cm, fill: color)
+#stack(
+ rect(2cm, #2a631a),
+ rect(3cm, #43a127),
+ rect(1cm, #9feb52),
+)