summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-01-28 22:32:53 +0100
committerLaurenz <laurmaedje@gmail.com>2022-01-28 22:32:53 +0100
commit5c53b9ff606f927bf0f2e4c40daf19d50ece09d9 (patch)
tree4c71142789415e1d0c1a7952eb3ed9f70898b9d1 /tests
parent9c906f92c50d453822b12896d29b7883802ea567 (diff)
Support for `wrap`
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/style/wrap.pngbin0 -> 10612 bytes
-rw-r--r--tests/typ/style/wrap.typ21
2 files changed, 19 insertions, 2 deletions
diff --git a/tests/ref/style/wrap.png b/tests/ref/style/wrap.png
new file mode 100644
index 00000000..346da53f
--- /dev/null
+++ b/tests/ref/style/wrap.png
Binary files differ
diff --git a/tests/typ/style/wrap.typ b/tests/typ/style/wrap.typ
index c665a9d2..5e0fdd0d 100644
--- a/tests/typ/style/wrap.typ
+++ b/tests/typ/style/wrap.typ
@@ -1,6 +1,23 @@
// Test wrap.
-// Ref: false
---
-// Error: 1-31 wrap is not yet implemented
+#set page(height: 130pt)
+#set text(70%)
+
+#align(center)[
+ #text(130%)[*Essay on typography*] \
+ T. Ypst
+]
+
#wrap body in columns(2, body)
+Great typography is at the essence of great storytelling. It is the medium that
+transports meaning from parchment to reader, the wave that sparks a flame
+in booklovers and the great fulfiller of human need.
+
+---
+// Test wrap in template.
+A [_B #wrap c in [*#c*]; C] D
+
+---
+// Error: 6-17 wrap is only allowed directly in markup
+{1 + wrap x in y}