diff options
Diffstat (limited to 'tests/suite')
| -rw-r--r-- | tests/suite/foundations/str.typ | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/suite/foundations/str.typ b/tests/suite/foundations/str.typ index 66fb912c..aeaa0a0a 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 |
