From e6a0447f9df43aa140affbcc1ad371ea2f362496 Mon Sep 17 00:00:00 2001 From: Martin Haug Date: Wed, 2 Feb 2022 20:56:29 +0100 Subject: Add roman numeral and footnote formatting --- tests/typ/utility/strings.typ | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/typ/utility/strings.typ (limited to 'tests/typ') 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) -- cgit v1.2.3