summaryrefslogtreecommitdiff
path: root/tests/lang/typ/for-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/for-value.typ
parentdb1659a987cd240b78e45666617248d3d0cc7d64 (diff)
Refresh tests 🌊
Diffstat (limited to 'tests/lang/typ/for-value.typ')
-rw-r--r--tests/lang/typ/for-value.typ14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/lang/typ/for-value.typ b/tests/lang/typ/for-value.typ
index 1813787d..3ab80716 100644
--- a/tests/lang/typ/for-value.typ
+++ b/tests/lang/typ/for-value.typ
@@ -3,18 +3,18 @@
---
// Template body yields template.
// Should output `234`.
-#for v #in (1, 2, 3, 4) [#if v >= 2 [{v}]]
+#for v in (1, 2, 3, 4) [#if v >= 2 [{v}]]
---
// Block body yields template.
// Should output `[1st, 2nd, 3rd, 4th, 5th, 6th]`.
{
- "[" + #for v #in (1, 2, 3, 4, 5, 6) {
- (#if v > 1 [, ]
+ "[" + for v in (1, 2, 3, 4, 5, 6) {
+ (if v > 1 [, ]
+ [{v}]
- + #if v == 1 [st]
- + #if v == 2 [nd]
- + #if v == 3 [rd]
- + #if v >= 4 [th])
+ + if v == 1 [st]
+ + if v == 2 [nd]
+ + if v == 3 [rd]
+ + if v >= 4 [th])
} + "]"
}