mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
24 lines
435 B
XML
24 lines
435 B
XML
// Test string functions.
|
|
|
|
---
|
|
// Test the `upper`, `lower`, and number formatting functions.
|
|
#upper("Abc 8 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-15 cannot convert integers greater than 3,999,999 to roman numerals
|
|
#roman(8000000)
|
|
|
|
---
|
|
// Error: 9-11 number must not be negative
|
|
#symbol(-1)
|