summaryrefslogtreecommitdiff
path: root/tests/typ
diff options
context:
space:
mode:
authorMartin Haug <mhaug@live.de>2022-02-02 20:56:29 +0100
committerMartin Haug <mhaug@live.de>2022-02-03 11:32:15 +0100
commite6a0447f9df43aa140affbcc1ad371ea2f362496 (patch)
tree729e8cd6a131daffbcab9ed5e8b63c2d356a9b15 /tests/typ
parente32e9faa53e6c89a4555306a6c40186e58e01b6c (diff)
Add roman numeral and footnote formatting
Diffstat (limited to 'tests/typ')
-rw-r--r--tests/typ/utility/strings.typ23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/typ/utility/strings.typ b/tests/typ/utility/strings.typ
new file mode 100644
index 00000000..15550f16
--- /dev/null
+++ b/tests/typ/utility/strings.typ
@@ -0,0 +1,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)