mirror of
https://github.com/typst/typst
synced 2025-08-19 01:18:32 +08:00
Add tests
This commit is contained in:
parent
d8ee74f5d3
commit
dabef05488
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user