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

332 of 11,911 cases

Case Name Expected Note Size
009881 regression/tail/marks to reorder ending at 41 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeẹ́ 41 bytes, ending in U+0301 U+0323. 41 B
009882 regression/tail/marks to reorder ending at 42 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeẹ́ 42 bytes, ending in U+0301 U+0323. 42 B
009883 regression/tail/marks to reorder ending at 43 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeẹ́ 43 bytes, ending in U+0301 U+0323. 43 B
009884 regression/tail/marks to reorder ending at 44 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeẹ́ 44 bytes, ending in U+0301 U+0323. 44 B
009885 regression/tail/marks to reorder ending at 45 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeẹ́ 45 bytes, ending in U+0301 U+0323. 45 B
009886 regression/tail/marks to reorder ending at 46 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeẹ́ 46 bytes, ending in U+0301 U+0323. 46 B
009887 regression/tail/marks to reorder ending at 47 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeẹ́ 47 bytes, ending in U+0301 U+0323. 47 B
009888 regression/tail/marks to reorder ending at 48 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeẹ́ 48 bytes, ending in U+0301 U+0323. 48 B
009889 regression/tail/marks to reorder ending at 49 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeẹ́ 49 bytes, ending in U+0301 U+0323. 49 B
009890 regression/tail/marks to reorder ending at 50 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeẹ́ 50 bytes, ending in U+0301 U+0323. 50 B
009891 regression/tail/marks to reorder ending at 51 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeẹ́ 51 bytes, ending in U+0301 U+0323. 51 B
009892 regression/tail/marks to reorder ending at 52 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeẹ́ 52 bytes, ending in U+0301 U+0323. 52 B
009893 regression/tail/marks to reorder ending at 53 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 53 bytes, ending in U+0301 U+0323. 53 B
009894 regression/tail/marks to reorder ending at 54 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 54 bytes, ending in U+0301 U+0323. 54 B
009895 regression/tail/marks to reorder ending at 55 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 55 bytes, ending in U+0301 U+0323. 55 B
009896 regression/tail/marks to reorder ending at 56 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 56 bytes, ending in U+0301 U+0323. 56 B
009897 regression/tail/marks to reorder ending at 57 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 57 bytes, ending in U+0301 U+0323. 57 B
009898 regression/tail/marks to reorder ending at 58 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 58 bytes, ending in U+0301 U+0323. 58 B
009899 regression/tail/marks to reorder ending at 59 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 59 bytes, ending in U+0301 U+0323. 59 B
009900 regression/tail/marks to reorder ending at 60 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 60 bytes, ending in U+0301 U+0323. 60 B
009901 regression/tail/marks to reorder ending at 61 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 61 bytes, ending in U+0301 U+0323. 61 B
009902 regression/tail/marks to reorder ending at 62 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 62 bytes, ending in U+0301 U+0323. 62 B
009903 regression/tail/marks to reorder ending at 63 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 63 bytes, ending in U+0301 U+0323. 63 B
009904 regression/tail/marks to reorder ending at 64 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 64 bytes, ending in U+0301 U+0323. 64 B
009905 regression/tail/marks to reorder ending at 65 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 65 bytes, ending in U+0301 U+0323. 65 B
009906 regression/tail/marks to reorder ending at 66 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 66 bytes, ending in U+0301 U+0323. 66 B
009907 regression/tail/marks to reorder ending at 67 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 67 bytes, ending in U+0301 U+0323. 67 B
009908 regression/tail/marks to reorder ending at 68 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 68 bytes, ending in U+0301 U+0323. 68 B
009909 regression/tail/marks to reorder ending at 69 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 69 bytes, ending in U+0301 U+0323. 69 B
009910 regression/tail/marks to reorder ending at 70 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 70 bytes, ending in U+0301 U+0323. 70 B
009912 regression/large/ascii, mark at the very end Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… The only change is in the last two bytes. 16.0 KiB
009918 regression/large/cjk, one compatibility ideograph at the end Focused regression 我能吞下玻璃而不伤身体。視野無限廣,窗外有藍天。我能吞下玻璃而不伤身体。視野無限廣,窗外有藍天。… 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.