summaryrefslogtreecommitdiff
path: root/tests/lang
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-02-12 23:11:47 +0100
committerLaurenz <laurmaedje@gmail.com>2021-02-12 23:11:47 +0100
commit094462cbdda15f19d2dc071b18201f656b8ddcd4 (patch)
tree0994b286aa1718cbc1a0b9523a934c1fb3f6f755 /tests/lang
parent58f799c41cb71f167e6e82eb94b3cde1303de11e (diff)
Make templates and strings summable 🥪
Diffstat (limited to 'tests/lang')
-rw-r--r--tests/lang/typ/for-value.typ4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lang/typ/for-value.typ b/tests/lang/typ/for-value.typ
index f0705fc5..1813787d 100644
--- a/tests/lang/typ/for-value.typ
+++ b/tests/lang/typ/for-value.typ
@@ -9,12 +9,12 @@
// Block body yields template.
// Should output `[1st, 2nd, 3rd, 4th, 5th, 6th]`.
{
- [\[] + #for v #in (1, 2, 3, 4, 5, 6) {
+ "[" + #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])
- } + [\]]
+ } + "]"
}