summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-05-30 10:31:31 +0200
committerLaurenz <laurmaedje@gmail.com>2022-05-30 10:33:51 +0200
commitccb4753e24eefb5b8cf2acd6d25f0e2afce1c022 (patch)
tree1ccad8397a675f840c71479bf088a39263507b74 /tests/typ
parent757615dc420b00e52eed6aad11595828e9101ba1 (diff)
Find optionally takes function instead of value
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/utility/collection.typ1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/typ/utility/collection.typ b/tests/typ/utility/collection.typ
index 3414f0a9..42c36906 100644
--- a/tests/typ/utility/collection.typ
+++ b/tests/typ/utility/collection.typ
@@ -32,6 +32,7 @@
// Test the `find` method.
#test(("Hi", "❤️", "Love").find("❤️"), 1)
#test(("Bye", "💘", "Apart").find("❤️"), none)
+#test(("A", "B", "CDEF", "G").find(v => v.len() > 2), 2)
---
// Test the `slice` method.