summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/code/block.typ7
-rw-r--r--tests/typ/style/wrap.typ6
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/typ/code/block.typ b/tests/typ/code/block.typ
index 5939ba9c..9122ea48 100644
--- a/tests/typ/code/block.typ
+++ b/tests/typ/code/block.typ
@@ -103,6 +103,13 @@
}
---
+// Template also creates a scope.
+[#let x = 1]
+
+// Error: 2-3 unknown variable
+{x}
+
+---
// Multiple unseparated expressions in one line.
// Error: 2-4 expected expression, found invalid token
diff --git a/tests/typ/style/wrap.typ b/tests/typ/style/wrap.typ
index 5e0fdd0d..1ff3cc95 100644
--- a/tests/typ/style/wrap.typ
+++ b/tests/typ/style/wrap.typ
@@ -19,5 +19,11 @@ in booklovers and the great fulfiller of human need.
A [_B #wrap c in [*#c*]; C] D
---
+// Test wrap style precedence.
+#set text(fill: eastern, size: 150%)
+#wrap body in text(fill: forest, body)
+Forest
+
+---
// Error: 6-17 wrap is only allowed directly in markup
{1 + wrap x in y}