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
All 11,911 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 006100 | unicode/part2/line 17328 NormalizationTest.txt |
a᷺̖͉֚b␊a᷺̖͉֚b
|
23 B | |
| 006101 | unicode/part2/line 17329 NormalizationTest.txt |
a᷺͉̖֚b␊a᷺͉̖֚b
|
23 B | |
| 006102 | unicode/part2/line 17330 NormalizationTest.txt |
à֮͊̕b␊à֮͊̕b␊à֮͊̕b
|
31 B | |
| 006103 | unicode/part2/line 17331 NormalizationTest.txt |
a֮͊̀̕b␊a֮͊̀̕b
|
21 B | |
| 006104 | unicode/part2/line 17332 NormalizationTest.txt |
à֮͋̕b␊à֮͋̕b␊à֮͋̕b
|
31 B | |
| 006105 | unicode/part2/line 17333 NormalizationTest.txt |
a֮͋̀̕b␊a֮͋̀̕b
|
21 B | |
| 006106 | unicode/part2/line 17334 NormalizationTest.txt |
à֮͌̕b␊à֮͌̕b␊à֮͌̕b
|
31 B | |
| 006107 | unicode/part2/line 17335 NormalizationTest.txt |
a֮͌̀̕b␊a֮͌̀̕b
|
21 B | |
| 006108 | unicode/part2/line 17336 NormalizationTest.txt |
a᷺̖͍֚b␊a᷺̖͍֚b
|
23 B | |
| 006109 | unicode/part2/line 17337 NormalizationTest.txt |
a᷺͍̖֚b␊a᷺͍̖֚b
|
23 B | |
| 006110 | unicode/part2/line 17338 NormalizationTest.txt |
a᷺̖͎֚b␊a᷺̖͎֚b
|
23 B | |
| 006111 | unicode/part2/line 17339 NormalizationTest.txt |
a᷺͎̖֚b␊a᷺͎̖֚b
|
23 B | |
| 006112 | unicode/part2/line 17340 NormalizationTest.txt |
à֮͐̕b␊à֮͐̕b␊à֮͐̕b
|
31 B | |
| 006113 | unicode/part2/line 17341 NormalizationTest.txt |
a֮͐̀̕b␊a֮͐̀̕b
|
21 B | |
| 006114 | unicode/part2/line 17342 NormalizationTest.txt |
à֮͑̕b␊à֮͑̕b␊à֮͑̕b
|
31 B | |
| 006115 | unicode/part2/line 17343 NormalizationTest.txt |
a֮͑̀̕b␊a֮͑̀̕b
|
21 B | |
| 006116 | unicode/part2/line 17344 NormalizationTest.txt |
à֮͒̕b␊à֮͒̕b␊à֮͒̕b
|
31 B | |
| 006117 | unicode/part2/line 17345 NormalizationTest.txt |
a֮͒̀̕b␊a֮͒̀̕b
|
21 B | |
| 006118 | unicode/part2/line 17346 NormalizationTest.txt |
a᷺̖͓֚b␊a᷺̖͓֚b
|
23 B | |
| 006119 | unicode/part2/line 17347 NormalizationTest.txt |
a᷺͓̖֚b␊a᷺͓̖֚b
|
23 B | |
| 006120 | unicode/part2/line 17348 NormalizationTest.txt |
a᷺̖͔֚b␊a᷺̖͔֚b
|
23 B | |
| 006121 | unicode/part2/line 17349 NormalizationTest.txt |
a᷺͔̖֚b␊a᷺͔̖֚b
|
23 B | |
| 006122 | unicode/part2/line 17350 NormalizationTest.txt |
a᷺̖͕֚b␊a᷺̖͕֚b
|
23 B | |
| 006123 | unicode/part2/line 17351 NormalizationTest.txt |
a᷺͕̖֚b␊a᷺͕̖֚b
|
23 B | |
| 006124 | unicode/part2/line 17352 NormalizationTest.txt |
a᷺̖͖֚b␊a᷺̖͖֚b
|
23 B | |
| 006125 | unicode/part2/line 17353 NormalizationTest.txt |
a᷺͖̖֚b␊a᷺͖̖֚b
|
23 B | |
| 006126 | unicode/part2/line 17354 NormalizationTest.txt |
à֮͗̕b␊à֮͗̕b␊à֮͗̕b
|
31 B | |
| 006127 | unicode/part2/line 17355 NormalizationTest.txt |
a֮͗̀̕b␊a֮͗̀̕b
|
21 B | |
| 006128 | unicode/part2/line 17356 NormalizationTest.txt |
à̕͘͜b␊à̕͘͜b␊à̕͘͜b
|
31 B | |
| 006129 | unicode/part2/line 17357 NormalizationTest.txt |
à͘̕͜b␊à͘̕͜b␊à͘̕͜b
|
31 B | |
| 006130 | unicode/part2/line 17358 NormalizationTest.txt |
a᷺̖͙֚b␊a᷺̖͙֚b
|
23 B | |
| 006131 | unicode/part2/line 17359 NormalizationTest.txt |
a᷺͙̖֚b␊a᷺͙̖֚b
|
23 B | |
| 006132 | unicode/part2/line 17360 NormalizationTest.txt |
a᷺̖͚֚b␊a᷺̖͚֚b
|
23 B | |
| 006133 | unicode/part2/line 17361 NormalizationTest.txt |
a᷺͚̖֚b␊a᷺͚̖֚b
|
23 B | |
| 006134 | unicode/part2/line 17362 NormalizationTest.txt |
à֮͛̕b␊à֮͛̕b␊à֮͛̕b
|
31 B | |
| 006135 | unicode/part2/line 17363 NormalizationTest.txt |
a֮͛̀̕b␊a֮͛̀̕b
|
21 B | |
| 006136 | unicode/part2/line 17364 NormalizationTest.txt |
a̕͜͜͝b␊a̕͜͜͝b
|
21 B | |
| 006137 | unicode/part2/line 17365 NormalizationTest.txt |
a̕͜͜͝b␊a̕͜͜͝b
|
21 B | |
| 006138 | unicode/part2/line 17366 NormalizationTest.txt |
a͜͝͝ͅb␊a͜͝͝ͅb
|
21 B | |
| 006139 | unicode/part2/line 17367 NormalizationTest.txt |
a͜͝͝ͅb␊a͜͝͝ͅb
|
21 B | |
| 006140 | unicode/part2/line 17368 NormalizationTest.txt |
a͜͝͞ͅb␊a͜͝͞ͅb
|
21 B | |
| 006141 | unicode/part2/line 17369 NormalizationTest.txt |
a͜͞͝ͅb␊a͜͞͝ͅb
|
21 B | |
| 006142 | unicode/part2/line 17370 NormalizationTest.txt |
a̕͜͟͝b␊a̕͜͟͝b
|
21 B | |
| 006143 | unicode/part2/line 17371 NormalizationTest.txt |
a̕͟͜͝b␊a̕͟͜͝b
|
21 B | |
| 006144 | unicode/part2/line 17372 NormalizationTest.txt |
a͜͝͠ͅb␊a͜͝͠ͅb
|
21 B | |
| 006145 | unicode/part2/line 17373 NormalizationTest.txt |
a͜͠͝ͅb␊a͜͠͝ͅb
|
21 B | |
| 006146 | unicode/part2/line 17374 NormalizationTest.txt |
a͜͝͡ͅb␊a͜͝͡ͅb
|
21 B | |
| 006147 | unicode/part2/line 17375 NormalizationTest.txt |
a͜͡͝ͅb␊a͜͡͝ͅb
|
21 B | |
| 006148 | unicode/part2/line 17376 NormalizationTest.txt |
a̕͜͢͝b␊a̕͜͢͝b
|
21 B | |
| 006149 | unicode/part2/line 17377 NormalizationTest.txt |
a̕͢͜͝b␊a̕͢͜͝b
|
21 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.
- NormalizationTest.txt — Unicode’s conformance test, the source of the 8,868 unicode cases; each case is one line, its distinct columns on separate lines
- The Unicode Character Database — combining classes, decompositions and composition exclusions, the source of the 157 ucd cases