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

221 of 11,911 cases

Case Name Expected Note Size
011724 generated/1811 Generated ĒAóuȩ̇É̈̄ạ̊̈a Seeded random text: common marks. 28 B
011733 generated/1820 Generated ũ̆̌̊Aē Seeded random text: common marks. 13 B
011742 generated/1829 Generated ę̃̇̀û̈ĕ̊̀̆Ă̂̊e̊̈̀äŌų̧̇́oÄ̊̄òỤ̌̆ Seeded random text: common marks. 70 B
011751 generated/1838 Generated Ẽ̂ÔÖẼ̈ų̨̆̆á̃̀̌Å̌̃ö̆̈̌Ǫ̃̌̄U̇̈̊ĂĚO̊̃̆Ę̧̣̄ȯ̧ö́ȩ̇̃ȯ̈̆̆Ụ̂̊̇AÒeẹ̣̀ḝ̇ Seeded random text: common marks. 142 B
011760 generated/1847 Generated ēÂą́̌̃Ǎ̊ú̧̈ Seeded random text: common marks. 27 B
011769 generated/1856 Generated Aȯ̧̃̆ụ̧̊ề̈́oāåǎ̀ŏā̈ěạā̌̂̆ò̂Ĕ̈̃Ẹ̈̂Ọ̆̆Ẹ̣̆ȩ̀́̈ū̂ą̈̀ĕ̊ŭ̧̃̈ǒ̀̌ Seeded random text: common marks. 136 B
011777 generated/1865 Generated aȮ̈ǎé̀OOȨ̈Ọ̄ũą̣̈EỌ̄̊ Seeded random text: common marks. 44 B
011786 generated/1874 Generated ẹ̇̄OĚ̄Ă̧̌Ǔ̧Ȩ̣̈ĕ̄ÈAOūo̊o̧Ę̌̆OŮ̧̆̊ Seeded random text: common marks. 68 B
011795 generated/1883 Generated Ě Seeded random text: common marks. 3 B
011804 generated/1892 Generated e Seeded random text: common marks. 1 B
011813 generated/1901 Generated eà̆̈ Seeded random text: common marks. 8 B
011822 generated/1910 Generated ů́̂Ụ̄ù̧̌̃Ȩạ̈̂̆Ò̆úU Seeded random text: common marks. 42 B
011831 generated/1919 Generated Ę̨̂̈Ẹ̃̊EÛŨ̃́̄Ũ̧eŮ Seeded random text: common marks. 38 B
011840 generated/1928 Generated Ę̄̆̄Òu̇̂̃ouo̊̇Ų̈̀è̂̃̌ǎaų̨̆̄ǓąŮṑa Seeded random text: common marks. 70 B
011849 generated/1937 Generated ĀUȧ̃̊̈ọ̈úŏ̆̀AoÀ̊̌Ạ̊̈OĀ̄ Seeded random text: common marks. 50 B
011858 generated/1946 Generated ǫ̣̊̀Éõ̆̊ĚU̇ Seeded random text: common marks. 25 B
011867 generated/1955 Generated O̊̃̇̊Ō̌̃à̆̃̃ò̧́ō Seeded random text: common marks. 35 B
011876 generated/1964 Generated Ǔ̆̄̇å̄Ū̊̊̊Á̌̇̃Á̧̂Ę̌Ą̧̈̌ẽė̌ŏ̀́̇Ě̂̄̇Ẹ̣̣́OaÁ̧̆áȩ̊ąǎ̊̆ǓẠǬ̨̄ó̧Ô̧̧̊ Seeded random text: common marks. 144 B
011885 generated/1973 Generated À̌̄aǪ̃̌UO̊́ûȯ̀ä̈Ų̣̄uā̈ǔ̧̂ÄĒ̌UŎ Seeded random text: common marks. 66 B
011893 generated/1982 Generated ȩ̧̇Ụ̂oȦ̃̊̆ Seeded random text: common marks. 22 B
011902 generated/1991 Generated ù̧̧Á̧Ě̇̌̌ų̂̃́Ŏ̧̨̂ŭ̧̂ÚĄ̆̃EĄ̂̈ë̂O̊ Seeded random text: common marks. 72 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.