summaryrefslogtreecommitdiff
path: root/tests/typ/utility/strings.typ
blob: 15550f168f01f0e67df2f9ba54e0f1bc0fe012da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// 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)