summaryrefslogtreecommitdiff
path: root/tests/suite/foundations
diff options
context:
space:
mode:
Diffstat (limited to 'tests/suite/foundations')
-rw-r--r--tests/suite/foundations/str.typ7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/suite/foundations/str.typ b/tests/suite/foundations/str.typ
index 56756416..66fb912c 100644
--- a/tests/suite/foundations/str.typ
+++ b/tests/suite/foundations/str.typ
@@ -86,6 +86,13 @@
// Error: 2-28 0x110000 is not a valid codepoint
#str.from-unicode(0x110000) // 0x10ffff is the highest valid code point
+--- str-normalize ---
+// Test the `normalize` method.
+#test("e\u{0301}".normalize(form: "nfc"), "é")
+#test("é".normalize(form: "nfd"), "e\u{0301}")
+#test("ſ\u{0301}".normalize(form: "nfkc"), "ś")
+#test("ſ\u{0301}".normalize(form: "nfkd"), "s\u{0301}")
+
--- string-len ---
// Test the `len` method.
#test("Hello World!".len(), 12)