Compliance cases

These are the 11,911 inputs a submission must normalize. Each output must match the expected text byte for byte. You can run the suite without reading it, or open any case to see its input and expected output.

NFC as UAX #15 defines it, pinned to Unicode 17.0.0: canonical decomposition, canonical ordering of combining marks, then canonical composition, with Hangul by arithmetic. The decomposition, combining class and composition tables are what make the Wasm big, so size is ranked on the gzipped download. The compliance suite has every line of NormalizationTest.txt, every other assigned code point, every quick-check Maybe and No character in context, targeted cases on exclusions, blocking, Hangul, long runs of marks and 16-byte boundaries, and seeded random text. A UAX #15 reference, ICU and Python agree on every answer.

Run the full compliance suite locally. Replace your-component.wasm with your compiled component. Download the suite

curl -fLo normalize_nfc.comply.wasm https://calculated.world/comply/normalize_nfc.wasm
npx qipok your-component.wasm --suite normalize_nfc.comply.wasm
Clear

222 of 11,911 cases

Case Name Expected Note Size
011722 generated/1809 Generated ාᄅ㡼ῷ Seeded random text: interesting. 13 B
011731 generated/1818 Generated יὁᄏ𑖯ꥠෞЀᆵ Seeded random text: interesting. 23 B
011740 generated/1827 Generated A不ᄉ菜 Seeded random text: interesting. 11 B
011749 generated/1836 Generated ἤ😀ǍᅵⷽA Seeded random text: interesting. 16 B
011758 generated/1845 Generated ೊ̸ǒи糒ひ᫙ὩЧᄋ𑤵שׂ Seeded random text: interesting. 34 B
011767 generated/1854 Generated ᅰ栗𑍇ēṚぜ𞣖ᷩ Seeded random text: interesting. 25 B
011776 generated/1863 Generated αẰ Seeded random text: interesting. 5 B
011784 generated/1872 Generated ␀᫪ἂ␀𢡊̧͂≽ൗᆪᆽ𑒽 Seeded random text: interesting. 31 B
011793 generated/1881 Generated уᅯὰ̤ÓֵЀà諾ᄐケᄎ᫥𖵧␊ Seeded random text: interesting. 39 B
011802 generated/1890 Generated ⃥ᄁἛ一ᬾാᾂᄆ Seeded random text: interesting. 24 B
011811 generated/1899 Generated iᄄ育ᆻ Seeded random text: interesting. 11 B
011820 generated/1908 Generated l𑽁̈́͂ἡe ᆲ雃ৗā Seeded random text: interesting. 27 B
011829 generated/1917 Generated ᄉṚᅫͅḶE࢚ٔaⷴ𑍬각丹␊иA Seeded random text: interesting. 38 B
011838 generated/1926 Generated ᄄᾖᾃי̇가iᄊu ⃩ᅟ Seeded random text: interesting. 28 B
011847 generated/1935 Generated 😀ᆧ蜎᪷流ç Seeded random text: interesting. 19 B
011856 generated/1944 Generated ᇀᅯώ嗢 Seeded random text: interesting. 12 B
011865 generated/1953 Generated 𑰿𑎐𑏂ힰ一ƠًE᷑浩慄ὧ Seeded random text: interesting. 36 B
011874 generated/1962 Generated Ž̮࣎ţ Seeded random text: interesting. 9 B
011883 generated/1971 Generated േक Seeded random text: interesting. 6 B
011891 generated/1980 Generated ်ἡЧ Seeded random text: interesting. 8 B
011900 generated/1989 Generated f里ᆨα Seeded random text: interesting. 9 B
011909 generated/1998 Generated ാ裸嬾A𐗒ᄉ一ўĽٕ̄Ἃ Seeded random text: interesting. 32 B

Where these rules come from

NFC is defined by UAX #15, Unicode Normalization Forms, and chapter 3.11 of the Unicode Standard, here pinned to Unicode 17.0.0. Every answer is agreed by a direct reading of UAX #15 over the pinned data files, ICU 78.3 and Python’s unicodedata.normalize; the suite’s own tests add Node.js’s String.prototype.normalize. Combining marks merge into the character before them, so each case also lists its code points.