From ccb4753e24eefb5b8cf2acd6d25f0e2afce1c022 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 30 May 2022 10:31:31 +0200 Subject: Find optionally takes function instead of value --- tests/typ/utility/collection.typ | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') 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. -- cgit v1.2.3