From 094462cbdda15f19d2dc071b18201f656b8ddcd4 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 12 Feb 2021 23:11:47 +0100 Subject: =?UTF-8?q?Make=20templates=20and=20strings=20summable=20?= =?UTF-8?q?=F0=9F=A5=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/lang/typ/for-value.typ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') 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]) - } + [\]] + } + "]" } -- cgit v1.2.3