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

13 of 11,911 cases

Case Name Expected Note Size
008868 ucd/unlisted/U+0000..U+11031 Unicode Character Database ␀␁␂␃␄␅␆␇␈␉␊␋␌␍␎␏␐␑␒␓␔␕␖␗␘␙␚␛␜␝␞␟ !"#$%&'()*+,-./… Every assigned code point in this range that NormalizationTest.txt Part 1 doesn't list (every 8th within the large ideograph ranges). Each is its own NFC form; a line feed comes before each combining mark. 58.6 KiB
008869 ucd/unlisted/U+11032..U+1D201 Unicode Character Database 𑀲𑀳𑀴𑀵𑀶𑀷𑀸𑀹𑀺𑀻𑀼𑀽𑀾𑀿𑁀𑁁𑁂𑁃𑁄𑁅␊𑁆𑁇𑁈𑁉𑁊𑁋𑁌𑁍𑁒𑁓𑁔𑁕𑁖𑁗𑁘𑁙𑁚𑁛𑁜𑁝𑁞𑁟𑁠𑁡𑁢𑁣𑁤𑁥𑁦𑁧𑁨𑁩𑁪𑁫𑁬𑁭𑁮𑁯␊𑁰𑁱… Every assigned code point in this range that NormalizationTest.txt Part 1 doesn't list (every 8th within the large ideograph ranges). Each is its own NFC form; a line feed comes before each combining mark. 58.6 KiB
008870 ucd/unlisted/U+1D202..U+E01EF Unicode Character Database 𝈂𝈃𝈄𝈅𝈆𝈇𝈈𝈉𝈊𝈋𝈌𝈍𝈎𝈏𝈐𝈑𝈒𝈓𝈔𝈕𝈖𝈗𝈘𝈙𝈚𝈛𝈜𝈝𝈞𝈟𝈠𝈡𝈢𝈣𝈤𝈥𝈦𝈧𝈨𝈩𝈪𝈫𝈬𝈭𝈮𝈯𝈰𝈱… Every assigned code point in this range that NormalizationTest.txt Part 1 doesn't list (every 8th within the large ideograph ranges). Each is its own NFC form; a line feed comes before each combining mark. 54.2 KiB
008871 ucd/unassigned/U+0378..U+10FFFF Unicode Character Database ͸͹΀΃΋΍΢԰՗՘֋֌֐׈׏׫׮׵׿܎݋݌޲޿߻߼࠮࠯࠿࡜࡝࡟࡫࡯࢒࢖঄঍঎঑঒঩঱঳঵঺঻৅… Both ends of every unassigned, private-use and noncharacter range, and every 251st code point between. All pass through unchanged. 18.9 KiB
009025 regression/empty Focused regression The empty input is its own NFC form. 0 B
009026 regression/ascii Focused regression ␀␁␂␃␄␅␆␇␈␉␊␋␌␍␎␏␐␑␒␓␔␕␖␗␘␙␚␛␜␝␞␟ !"#$%&'()*+,-./… Every ASCII byte, NUL included. 128 B
009027 regression/nul in the middle Focused regression e␀́ NUL is a starter like any other: nothing composes across it. 4 B
009029 regression/noncharacters Focused regression ⟨U+FFFE⟩⟨U+FFFF⟩⟨U+FDD0⟩⟨U+FDEF⟩⟨U+1FFFE⟩⟨U+10FFFF⟩ 20 B
009030 regression/latin-1 Focused regression ⟨U+0080⟩⟨U+0081⟩⟨U+0082⟩⟨U+0083⟩⟨U+0084⟩⟨U+0085⟩⟨U+0086⟩⟨U+0087⟩⟨U+0088⟩⟨U+0089⟩⟨U+008A⟩⟨U+008B⟩⟨U+008C⟩⟨U+008D⟩⟨U+008E⟩⟨U+008F⟩⟨U+0090⟩⟨U+0091⟩⟨U+0092⟩⟨U+0093⟩⟨U+0094⟩⟨U+0095⟩⟨U+0096⟩⟨U+0097⟩⟨U+0098⟩⟨U+0099⟩⟨U+009A⟩⟨U+009B⟩⟨U+009C⟩⟨U+009D⟩⟨U+009E⟩⟨U+009F⟩⟨U+00A0⟩¡¢£¤¥¦§¨©ª«¬⟨U+00AD⟩®¯… U+0080..U+00FF are all already NFC. 256 B
009031 regression/compatibility characters stay Focused regression fi ² ㎏ A ガ ㈱ ½ ℌ NFC applies canonical mappings only. These have compatibility decompositions, which are NFKC's business. 32 B
009032 regression/emoji sequences Focused regression 👩🏽⟨U+200D⟩💻 🏳️⟨U+200D⟩🌈 👨⟨U+200D⟩👩⟨U+200D⟩👧⟨U+200D⟩👦 🇳🇿 ❤️ #️⃣ ZWJ, variation selectors, skin tones and U+20E3 leave emoji alone. 80 B
009911 regression/large/ascii Focused regression The quick brown fox jumps over the lazy dog.␊The… 64 KiB of ASCII, the largest input in the suite. 64.0 KiB
009915 regression/large/vietnamese composed Focused regression Tiếng Việt là ngôn ngữ của người Việt và là ngôn… 16.0 KiB

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.