From dabef054883e95bc35444af369fd6132332bc1a7 Mon Sep 17 00:00:00 2001 From: Malo <57839069+MDLC01@users.noreply.github.com> Date: Thu, 3 Jul 2025 22:47:20 +0100 Subject: [PATCH] Add tests --- tests/suite/foundations/str.typ | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/suite/foundations/str.typ b/tests/suite/foundations/str.typ index 66fb912c0..aeaa0a0af 100644 --- a/tests/suite/foundations/str.typ +++ b/tests/suite/foundations/str.typ @@ -103,6 +103,10 @@ #test("Hello".last(), "o") #test("🏳️‍🌈A🏳️‍⚧️".first(), "🏳️‍🌈") #test("🏳️‍🌈A🏳️‍⚧️".last(), "🏳️‍⚧️") +#test("hey".first(default: "d"), "h") +#test("".first(default: "d"), "d") +#test("hey".last(default: "d"), "y") +#test("".last(default: "d"), "d") --- string-first-empty --- // Error: 2-12 string is empty