From bc1bc91a33bcef567dbd7f846dbfac9d19a0994e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 16 May 2022 15:55:50 +0200 Subject: Allow adding `none` and anything --- tests/typ/code/ops.typ | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/typ/code/ops.typ') diff --git a/tests/typ/code/ops.typ b/tests/typ/code/ops.typ index 33a1a4a4..012b8c87 100644 --- a/tests/typ/code/ops.typ +++ b/tests/typ/code/ops.typ @@ -27,6 +27,8 @@ // Addition. #test(2 + 4, 6) #test("a" + "b", "ab") +#test("a" + if false { "b" }, "a") +#test("a" + if true { "b" }, "ab") #test(13 * "a" + "bbbbbb", "aaaaaaaaaaaaabbbbbb") #test((1, 2) + (3, 4), (1, 2, 3, 4)) #test((a: 1) + (b: 2, c: 3), (a: 1, b: 2, c: 3)) -- cgit v1.2.3