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
1,936 of 11,911 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 007604 | unicode/part2/line 18832 NormalizationTest.txt |
a𖿰़𑚷゙b␊a𖿰़𑚷゙b
|
33 B | |
| 007605 | unicode/part2/line 18833 NormalizationTest.txt |
a𖿰𑚷़゙b␊a𖿰𑚷़゙b
|
33 B | |
| 007606 | unicode/part2/line 18834 NormalizationTest.txt |
a゙्𑜫ְb␊a゙्𑜫ְb
|
29 B | |
| 007607 | unicode/part2/line 18835 NormalizationTest.txt |
a゙𑜫्ְb␊a゙𑜫्ְb
|
29 B | |
| 007608 | unicode/part2/line 18836 NormalizationTest.txt |
a゙्𑠹ְb␊a゙्𑠹ְb
|
29 B | |
| 007609 | unicode/part2/line 18837 NormalizationTest.txt |
a゙𑠹्ְb␊a゙𑠹्ְb
|
29 B | |
| 007610 | unicode/part2/line 18838 NormalizationTest.txt |
a𖿰़𑠺゙b␊a𖿰़𑠺゙b
|
33 B | |
| 007611 | unicode/part2/line 18839 NormalizationTest.txt |
a𖿰𑠺़゙b␊a𖿰𑠺़゙b
|
33 B | |
| 007612 | unicode/part2/line 18840 NormalizationTest.txt |
a゙्𑤽ְb␊a゙्𑤽ְb
|
29 B | |
| 007613 | unicode/part2/line 18841 NormalizationTest.txt |
a゙𑤽्ְb␊a゙𑤽्ְb
|
29 B | |
| 007614 | unicode/part2/line 18842 NormalizationTest.txt |
a゙्𑤾ְb␊a゙्𑤾ְb
|
29 B | |
| 007615 | unicode/part2/line 18843 NormalizationTest.txt |
a゙𑤾्ְb␊a゙𑤾्ְb
|
29 B | |
| 007616 | unicode/part2/line 18844 NormalizationTest.txt |
a𖿰़𑥃゙b␊a𖿰़𑥃゙b
|
33 B | |
| 007617 | unicode/part2/line 18845 NormalizationTest.txt |
a𖿰𑥃़゙b␊a𖿰𑥃़゙b
|
33 B | |
| 007618 | unicode/part2/line 18846 NormalizationTest.txt |
a゙्𑧠ְb␊a゙्𑧠ְb
|
29 B | |
| 007619 | unicode/part2/line 18847 NormalizationTest.txt |
a゙𑧠्ְb␊a゙𑧠्ְb
|
29 B | |
| 007620 | unicode/part2/line 18848 NormalizationTest.txt |
a゙्𑨴ְb␊a゙्𑨴ְb
|
29 B | |
| 007621 | unicode/part2/line 18849 NormalizationTest.txt |
a゙𑨴्ְb␊a゙𑨴्ְb
|
29 B | |
| 007622 | unicode/part2/line 18850 NormalizationTest.txt |
a゙्𑩇ְb␊a゙्𑩇ְb
|
29 B | |
| 007623 | unicode/part2/line 18851 NormalizationTest.txt |
a゙𑩇्ְb␊a゙𑩇्ְb
|
29 B | |
| 007624 | unicode/part2/line 18852 NormalizationTest.txt |
a゙्𑪙ְb␊a゙्𑪙ְb
|
29 B | |
| 007625 | unicode/part2/line 18853 NormalizationTest.txt |
a゙𑪙्ְb␊a゙𑪙्ְb
|
29 B | |
| 007626 | unicode/part2/line 18854 NormalizationTest.txt |
a゙्𑰿ְb␊a゙्𑰿ְb
|
29 B | |
| 007627 | unicode/part2/line 18855 NormalizationTest.txt |
a゙𑰿्ְb␊a゙𑰿्ְb
|
29 B | |
| 007628 | unicode/part2/line 18856 NormalizationTest.txt |
a𖿰़𑵂゙b␊a𖿰़𑵂゙b
|
33 B | |
| 007629 | unicode/part2/line 18857 NormalizationTest.txt |
a𖿰𑵂़゙b␊a𖿰𑵂़゙b
|
33 B | |
| 007630 | unicode/part2/line 18858 NormalizationTest.txt |
a゙्𑵄ְb␊a゙्𑵄ְb
|
29 B | |
| 007631 | unicode/part2/line 18859 NormalizationTest.txt |
a゙𑵄्ְb␊a゙𑵄्ְb
|
29 B | |
| 007632 | unicode/part2/line 18860 NormalizationTest.txt |
a゙्𑵅ְb␊a゙्𑵅ְb
|
29 B | |
| 007633 | unicode/part2/line 18861 NormalizationTest.txt |
a゙𑵅्ְb␊a゙𑵅्ְb
|
29 B | |
| 007634 | unicode/part2/line 18862 NormalizationTest.txt |
a゙्𑶗ְb␊a゙्𑶗ְb
|
29 B | |
| 007635 | unicode/part2/line 18863 NormalizationTest.txt |
a゙𑶗्ְb␊a゙𑶗्ְb
|
29 B | |
| 007636 | unicode/part2/line 18864 NormalizationTest.txt |
a゙्𑽁ְb␊a゙्𑽁ְb
|
29 B | |
| 007637 | unicode/part2/line 18865 NormalizationTest.txt |
a゙𑽁्ְb␊a゙𑽁्ְb
|
29 B | |
| 007638 | unicode/part2/line 18866 NormalizationTest.txt |
a゙्𑽂ְb␊a゙्𑽂ְb
|
29 B | |
| 007639 | unicode/part2/line 18867 NormalizationTest.txt |
a゙𑽂्ְb␊a゙𑽂्ְb
|
29 B | |
| 007640 | unicode/part2/line 18868 NormalizationTest.txt |
a゙्ְb␊a゙्ְb
|
29 B | |
| 007641 | unicode/part2/line 18869 NormalizationTest.txt |
a゙्ְb␊a゙्ְb
|
29 B | |
| 007642 | unicode/part2/line 18870 NormalizationTest.txt |
a̴𖫰𖿰b␊a̴𖫰𖿰b
|
25 B | |
| 007643 | unicode/part2/line 18871 NormalizationTest.txt |
a𖫰̴𖿰b␊a𖫰̴𖿰b
|
25 B | |
| 007644 | unicode/part2/line 18872 NormalizationTest.txt |
a̴𖫱𖿰b␊a̴𖫱𖿰b
|
25 B | |
| 007645 | unicode/part2/line 18873 NormalizationTest.txt |
a𖫱̴𖿰b␊a𖫱̴𖿰b
|
25 B | |
| 007646 | unicode/part2/line 18874 NormalizationTest.txt |
a̴𖫲𖿰b␊a̴𖫲𖿰b
|
25 B | |
| 007647 | unicode/part2/line 18875 NormalizationTest.txt |
a𖫲̴𖿰b␊a𖫲̴𖿰b
|
25 B | |
| 007648 | unicode/part2/line 18876 NormalizationTest.txt |
a̴𖫳𖿰b␊a̴𖫳𖿰b
|
25 B | |
| 007649 | unicode/part2/line 18877 NormalizationTest.txt |
a𖫳̴𖿰b␊a𖫳̴𖿰b
|
25 B | |
| 007650 | unicode/part2/line 18878 NormalizationTest.txt |
a̴𖫴𖿰b␊a̴𖫴𖿰b
|
25 B | |
| 007651 | unicode/part2/line 18879 NormalizationTest.txt |
a𖫴̴𖿰b␊a𖫴̴𖿰b
|
25 B | |
| 007652 | unicode/part2/line 18880 NormalizationTest.txt |
à֮𖬰̕b␊à֮𖬰̕b␊à֮𖬰̕b
|
37 B | |
| 007653 | unicode/part2/line 18881 NormalizationTest.txt |
a֮𖬰̀̕b␊a֮𖬰̀̕b
|
25 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