mirror of
https://github.com/typst/typst
synced 2025-08-23 03:04:14 +08:00
Add tests
This commit is contained in:
parent
d8ee74f5d3
commit
dabef05488
@ -103,6 +103,10 @@
|
|||||||
#test("Hello".last(), "o")
|
#test("Hello".last(), "o")
|
||||||
#test("🏳️🌈A🏳️⚧️".first(), "🏳️🌈")
|
#test("🏳️🌈A🏳️⚧️".first(), "🏳️🌈")
|
||||||
#test("🏳️🌈A🏳️⚧️".last(), "🏳️⚧️")
|
#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 ---
|
--- string-first-empty ---
|
||||||
// Error: 2-12 string is empty
|
// Error: 2-12 string is empty
|
||||||
|
Loading…
x
Reference in New Issue
Block a user