summaryrefslogtreecommitdiff
path: root/tests/lang/typ/block-value.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-02-17 21:30:20 +0100
committerLaurenz <laurmaedje@gmail.com>2021-02-17 21:30:20 +0100
commit2f4dc99cec1c6fa33257dea91ab3bcd99b1cbdf5 (patch)
treeeb983e54bac5ae226474bd8c5d6a29006b00ff12 /tests/lang/typ/block-value.typ
parentdb1659a987cd240b78e45666617248d3d0cc7d64 (diff)
Refresh tests 🌊
Diffstat (limited to 'tests/lang/typ/block-value.typ')
-rw-r--r--tests/lang/typ/block-value.typ16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/lang/typ/block-value.typ b/tests/lang/typ/block-value.typ
index 62934ce6..4a075c03 100644
--- a/tests/lang/typ/block-value.typ
+++ b/tests/lang/typ/block-value.typ
@@ -7,7 +7,7 @@ All none
{}
// Let evaluates to none.
-{ #let v = 0 }
+{ let v = 0 }
// Trailing none evaluates to none.
{
@@ -20,19 +20,19 @@ All none
{ "Hello" }
// Evaluates to trailing expression.
-{ #let x = "Hel"; x + "lo" }
+{ let x = "Hel"; x + "lo" }
// Evaluates to concatenation of for loop bodies.
{
- #let parts = ("Hel", "lo")
- #for s #in parts [{s}]
+ let parts = ("Hel", "lo")
+ for s in parts [{s}]
}
---
// Works the same way in code environment.
// Ref: false
-#[test {
- #let x = 1
- #let y = 2
+#test(3, {
+ let x = 1
+ let y = 2
x + y
-}, 3]
+})