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 |
|---|---|---|---|---|
| 007504 | unicode/part2/line 18732 NormalizationTest.txt |
a᷺̖𐽏֚b␊a᷺̖𐽏֚b
|
27 B | |
| 007505 | unicode/part2/line 18733 NormalizationTest.txt |
a᷺𐽏̖֚b␊a᷺𐽏̖֚b
|
27 B | |
| 007506 | unicode/part2/line 18734 NormalizationTest.txt |
a᷺̖𐽐֚b␊a᷺̖𐽐֚b
|
27 B | |
| 007507 | unicode/part2/line 18735 NormalizationTest.txt |
a᷺𐽐̖֚b␊a᷺𐽐̖֚b
|
27 B | |
| 007508 | unicode/part2/line 18736 NormalizationTest.txt |
à֮𐾂̕b␊à֮𐾂̕b␊à֮𐾂̕b
|
37 B | |
| 007509 | unicode/part2/line 18737 NormalizationTest.txt |
a֮𐾂̀̕b␊a֮𐾂̀̕b
|
25 B | |
| 007510 | unicode/part2/line 18738 NormalizationTest.txt |
a᷺̖𐾃֚b␊a᷺̖𐾃֚b
|
27 B | |
| 007511 | unicode/part2/line 18739 NormalizationTest.txt |
a᷺𐾃̖֚b␊a᷺𐾃̖֚b
|
27 B | |
| 007512 | unicode/part2/line 18740 NormalizationTest.txt |
à֮𐾄̕b␊à֮𐾄̕b␊à֮𐾄̕b
|
37 B | |
| 007513 | unicode/part2/line 18741 NormalizationTest.txt |
a֮𐾄̀̕b␊a֮𐾄̀̕b
|
25 B | |
| 007514 | unicode/part2/line 18742 NormalizationTest.txt |
a᷺̖𐾅֚b␊a᷺̖𐾅֚b
|
27 B | |
| 007515 | unicode/part2/line 18743 NormalizationTest.txt |
a᷺𐾅̖֚b␊a᷺𐾅̖֚b
|
27 B | |
| 007516 | unicode/part2/line 18744 NormalizationTest.txt |
a゙्𑁆ְb␊a゙्𑁆ְb
|
29 B | |
| 007517 | unicode/part2/line 18745 NormalizationTest.txt |
a゙𑁆्ְb␊a゙𑁆्ְb
|
29 B | |
| 007518 | unicode/part2/line 18746 NormalizationTest.txt |
a゙्𑁰ְb␊a゙्𑁰ְb
|
29 B | |
| 007519 | unicode/part2/line 18747 NormalizationTest.txt |
a゙𑁰्ְb␊a゙𑁰्ְb
|
29 B | |
| 007520 | unicode/part2/line 18748 NormalizationTest.txt |
a゙्𑁿ְb␊a゙्𑁿ְb
|
29 B | |
| 007521 | unicode/part2/line 18749 NormalizationTest.txt |
a゙𑁿्ְb␊a゙𑁿्ְb
|
29 B | |
| 007522 | unicode/part2/line 18750 NormalizationTest.txt |
a゙्𑂹ְb␊a゙्𑂹ְb
|
29 B | |
| 007523 | unicode/part2/line 18751 NormalizationTest.txt |
a゙𑂹्ְb␊a゙𑂹्ְb
|
29 B | |
| 007524 | unicode/part2/line 18752 NormalizationTest.txt |
a𖿰़𑂺゙b␊a𖿰़𑂺゙b
|
33 B | |
| 007525 | unicode/part2/line 18753 NormalizationTest.txt |
a𖿰𑂺़゙b␊a𖿰𑂺़゙b
|
33 B | |
| 007526 | unicode/part2/line 18754 NormalizationTest.txt |
à֮𑄀̕b␊à֮𑄀̕b␊à֮𑄀̕b
|
37 B | |
| 007527 | unicode/part2/line 18755 NormalizationTest.txt |
a֮𑄀̀̕b␊a֮𑄀̀̕b
|
25 B | |
| 007528 | unicode/part2/line 18756 NormalizationTest.txt |
à֮𑄁̕b␊à֮𑄁̕b␊à֮𑄁̕b
|
37 B | |
| 007529 | unicode/part2/line 18757 NormalizationTest.txt |
a֮𑄁̀̕b␊a֮𑄁̀̕b
|
25 B | |
| 007530 | unicode/part2/line 18758 NormalizationTest.txt |
à֮𑄂̕b␊à֮𑄂̕b␊à֮𑄂̕b
|
37 B | |
| 007531 | unicode/part2/line 18759 NormalizationTest.txt |
a֮𑄂̀̕b␊a֮𑄂̀̕b
|
25 B | |
| 007532 | unicode/part2/line 18760 NormalizationTest.txt |
a゙्𑄳ְb␊a゙्𑄳ְb
|
29 B | |
| 007533 | unicode/part2/line 18761 NormalizationTest.txt |
a゙𑄳्ְb␊a゙𑄳्ְb
|
29 B | |
| 007534 | unicode/part2/line 18762 NormalizationTest.txt |
a゙्𑄴ְb␊a゙्𑄴ְb
|
29 B | |
| 007535 | unicode/part2/line 18763 NormalizationTest.txt |
a゙𑄴्ְb␊a゙𑄴्ְb
|
29 B | |
| 007536 | unicode/part2/line 18764 NormalizationTest.txt |
a𖿰़𑅳゙b␊a𖿰़𑅳゙b
|
33 B | |
| 007537 | unicode/part2/line 18765 NormalizationTest.txt |
a𖿰𑅳़゙b␊a𖿰𑅳़゙b
|
33 B | |
| 007538 | unicode/part2/line 18766 NormalizationTest.txt |
a゙्𑇀ְb␊a゙्𑇀ְb
|
29 B | |
| 007539 | unicode/part2/line 18767 NormalizationTest.txt |
a゙𑇀्ְb␊a゙𑇀्ְb
|
29 B | |
| 007540 | unicode/part2/line 18768 NormalizationTest.txt |
a𖿰़𑇊゙b␊a𖿰़𑇊゙b
|
33 B | |
| 007541 | unicode/part2/line 18769 NormalizationTest.txt |
a𖿰𑇊़゙b␊a𖿰𑇊़゙b
|
33 B | |
| 007542 | unicode/part2/line 18770 NormalizationTest.txt |
a゙्𑈵ְb␊a゙्𑈵ְb
|
29 B | |
| 007543 | unicode/part2/line 18771 NormalizationTest.txt |
a゙𑈵्ְb␊a゙𑈵्ְb
|
29 B | |
| 007544 | unicode/part2/line 18772 NormalizationTest.txt |
a𖿰़𑈶゙b␊a𖿰़𑈶゙b
|
33 B | |
| 007545 | unicode/part2/line 18773 NormalizationTest.txt |
a𖿰𑈶़゙b␊a𖿰𑈶़゙b
|
33 B | |
| 007546 | unicode/part2/line 18774 NormalizationTest.txt |
a𖿰़𑋩゙b␊a𖿰़𑋩゙b
|
33 B | |
| 007547 | unicode/part2/line 18775 NormalizationTest.txt |
a𖿰𑋩़゙b␊a𖿰𑋩़゙b
|
33 B | |
| 007548 | unicode/part2/line 18776 NormalizationTest.txt |
a゙्𑋪ְb␊a゙्𑋪ְb
|
29 B | |
| 007549 | unicode/part2/line 18777 NormalizationTest.txt |
a゙𑋪्ְb␊a゙𑋪्ְb
|
29 B | |
| 007550 | unicode/part2/line 18778 NormalizationTest.txt |
a𖿰़𑌻゙b␊a𖿰़𑌻゙b
|
33 B | |
| 007551 | unicode/part2/line 18779 NormalizationTest.txt |
a𖿰𑌻़゙b␊a𖿰𑌻़゙b
|
33 B | |
| 007552 | unicode/part2/line 18780 NormalizationTest.txt |
a𖿰़𑌼゙b␊a𖿰़𑌼゙b
|
33 B | |
| 007553 | unicode/part2/line 18781 NormalizationTest.txt |
a𖿰𑌼़゙b␊a𖿰𑌼़゙b
|
33 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