summaryrefslogtreecommitdiff
path: root/tests/typ/code/ops.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-05-16 15:55:50 +0200
committerLaurenz <laurmaedje@gmail.com>2022-05-16 15:55:50 +0200
commitbc1bc91a33bcef567dbd7f846dbfac9d19a0994e (patch)
tree71d93f60ee34db03755ad10f7c65b30586522821 /tests/typ/code/ops.typ
parent204cad6bd673da1a265b5b6650ebe89c89ddbace (diff)
Allow adding `none` and anything
Diffstat (limited to 'tests/typ/code/ops.typ')
-rw-r--r--tests/typ/code/ops.typ2
1 files changed, 2 insertions, 0 deletions
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))