summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSébastien d'Herbais de Thun <sebastien.d.herbais@gmail.com>2023-08-30 13:31:37 +0200
committerGitHub <noreply@github.com>2023-08-30 13:31:37 +0200
commit8a0dd88f1073f8fac9b2db022027eae3752dffd7 (patch)
tree12b8f5c8bc4ed7daef93e5e152ddac39b0765add /tests
parente1558268f9b813ca6b789909075603eb8dc22af9 (diff)
Make zip variadic (#2041)
Diffstat (limited to 'tests')
-rw-r--r--tests/typ/compiler/array.typ3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/typ/compiler/array.typ b/tests/typ/compiler/array.typ
index 96c6c668..58c108a4 100644
--- a/tests/typ/compiler/array.typ
+++ b/tests/typ/compiler/array.typ
@@ -244,6 +244,9 @@
#test((1, 2, 3, 4).zip((5, 6)), ((1, 5), (2, 6)))
#test(((1, 2), 3).zip((4, 5)), (((1, 2), 4), (3, 5)))
#test((1, "hi").zip((true, false)), ((1, true), ("hi", false)))
+#test((1, 2, 3).zip((3, 4, 5), (6, 7, 8)), ((1, 3, 6), (2, 4, 7), (3, 5, 8)))
+#test(().zip((), ()), ())
+#test((1,).zip((2,), (3,)), ((1, 2, 3),))
---
// Test the `enumerate` method.