mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
25 lines
407 B
XML
25 lines
407 B
XML
// Test string functions.
|
|
|
|
---
|
|
// Test the `upper`, `lower`, and number formatting functions.
|
|
#upper("Abc 8")
|
|
#upper[def]
|
|
|
|
#lower("SCREAMING MUST BE SILENCED in " + roman(1672) + " years")
|
|
|
|
#for i in range(9) {
|
|
symbol(i)
|
|
[ and ]
|
|
roman(i)
|
|
[ for #i]
|
|
parbreak()
|
|
}
|
|
|
|
---
|
|
// Error: 8-9 expected string or template, found integer
|
|
#upper(1)
|
|
|
|
---
|
|
// Error: 9-11 must be at least zero
|
|
#symbol(-1)
|