mirror of
https://github.com/typst/typst
synced 2025-05-16 01:55:28 +08:00
12 lines
316 B
Typst
12 lines
316 B
Typst
// Test the `upper` and `lower` functions.
|
|
|
|
--- lower-and-upper ---
|
|
#let memes = "ArE mEmEs gReAt?";
|
|
#test(lower(memes), "are memes great?")
|
|
#test(upper(memes), "ARE MEMES GREAT?")
|
|
#test(upper("Ελλάδα"), "ΕΛΛΆΔΑ")
|
|
|
|
--- upper-bad-type ---
|
|
// Error: 8-9 expected string or content, found integer
|
|
#upper(1)
|