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 |
|---|---|---|---|---|
| 000650 | unicode/part1/U+1E12 NormalizationTest.txt |
Ḓ␊Ḓ
|
7 B | |
| 000651 | unicode/part1/U+1E13 NormalizationTest.txt |
ḓ␊ḓ
|
7 B | |
| 000652 | unicode/part1/U+1E15 NormalizationTest.txt |
ḕ␊ḕ
|
9 B | |
| 000653 | unicode/part1/U+1E16 NormalizationTest.txt |
Ḗ␊Ḗ
|
9 B | |
| 000654 | unicode/part1/U+1E17 NormalizationTest.txt |
ḗ␊ḗ
|
9 B | |
| 000655 | unicode/part1/U+1E18 NormalizationTest.txt |
Ḙ␊Ḙ
|
7 B | |
| 000656 | unicode/part1/U+1E19 NormalizationTest.txt |
ḙ␊ḙ
|
7 B | |
| 000657 | unicode/part1/U+1E1A NormalizationTest.txt |
Ḛ␊Ḛ
|
7 B | |
| 000658 | unicode/part1/U+1E1B NormalizationTest.txt |
ḛ␊ḛ
|
7 B | |
| 000659 | unicode/part1/U+1E1C NormalizationTest.txt |
Ḝ␊Ḝ
|
9 B | |
| 000660 | unicode/part1/U+1E1D NormalizationTest.txt |
ḝ␊ḝ
|
9 B | |
| 000661 | unicode/part1/U+1E1E NormalizationTest.txt |
Ḟ␊Ḟ
|
7 B | |
| 000662 | unicode/part1/U+1E1F NormalizationTest.txt |
ḟ␊ḟ
|
7 B | |
| 000663 | unicode/part1/U+1E20 NormalizationTest.txt |
Ḡ␊Ḡ
|
7 B | |
| 000664 | unicode/part1/U+1E21 NormalizationTest.txt |
ḡ␊ḡ
|
7 B | |
| 000665 | unicode/part1/U+1E22 NormalizationTest.txt |
Ḣ␊Ḣ
|
7 B | |
| 000666 | unicode/part1/U+1E23 NormalizationTest.txt |
ḣ␊ḣ
|
7 B | |
| 000667 | unicode/part1/U+1E24 NormalizationTest.txt |
Ḥ␊Ḥ
|
7 B | |
| 000668 | unicode/part1/U+1E25 NormalizationTest.txt |
ḥ␊ḥ
|
7 B | |
| 000669 | unicode/part1/U+1E26 NormalizationTest.txt |
Ḧ␊Ḧ
|
7 B | |
| 000670 | unicode/part1/U+1E27 NormalizationTest.txt |
ḧ␊ḧ
|
7 B | |
| 000671 | unicode/part1/U+1E28 NormalizationTest.txt |
Ḩ␊Ḩ
|
7 B | |
| 000672 | unicode/part1/U+1E29 NormalizationTest.txt |
ḩ␊ḩ
|
7 B | |
| 000673 | unicode/part1/U+1E2A NormalizationTest.txt |
Ḫ␊Ḫ
|
7 B | |
| 000674 | unicode/part1/U+1E2B NormalizationTest.txt |
ḫ␊ḫ
|
7 B | |
| 000675 | unicode/part1/U+1E2C NormalizationTest.txt |
Ḭ␊Ḭ
|
7 B | |
| 000676 | unicode/part1/U+1E2D NormalizationTest.txt |
ḭ␊ḭ
|
7 B | |
| 000677 | unicode/part1/U+1E2E NormalizationTest.txt |
Ḯ␊Ḯ
|
9 B | |
| 000678 | unicode/part1/U+1E2F NormalizationTest.txt |
ḯ␊ḯ
|
9 B | |
| 000679 | unicode/part1/U+1E30 NormalizationTest.txt |
Ḱ␊Ḱ
|
7 B | |
| 000680 | unicode/part1/U+1E31 NormalizationTest.txt |
ḱ␊ḱ
|
7 B | |
| 000681 | unicode/part1/U+1E32 NormalizationTest.txt |
Ḳ␊Ḳ
|
7 B | |
| 000682 | unicode/part1/U+1E33 NormalizationTest.txt |
ḳ␊ḳ
|
7 B | |
| 000683 | unicode/part1/U+1E34 NormalizationTest.txt |
Ḵ␊Ḵ
|
7 B | |
| 000684 | unicode/part1/U+1E35 NormalizationTest.txt |
ḵ␊ḵ
|
7 B | |
| 000685 | unicode/part1/U+1E36 NormalizationTest.txt |
Ḷ␊Ḷ
|
7 B | |
| 000686 | unicode/part1/U+1E37 NormalizationTest.txt |
ḷ␊ḷ
|
7 B | |
| 000687 | unicode/part1/U+1E38 NormalizationTest.txt |
Ḹ␊Ḹ
|
9 B | |
| 000688 | unicode/part1/U+1E39 NormalizationTest.txt |
ḹ␊ḹ
|
9 B | |
| 000689 | unicode/part1/U+1E3A NormalizationTest.txt |
Ḻ␊Ḻ
|
7 B | |
| 000690 | unicode/part1/U+1E3B NormalizationTest.txt |
ḻ␊ḻ
|
7 B | |
| 000691 | unicode/part1/U+1E3C NormalizationTest.txt |
Ḽ␊Ḽ
|
7 B | |
| 000692 | unicode/part1/U+1E3D NormalizationTest.txt |
ḽ␊ḽ
|
7 B | |
| 000693 | unicode/part1/U+1E3E NormalizationTest.txt |
Ḿ␊Ḿ
|
7 B | |
| 000694 | unicode/part1/U+1E3F NormalizationTest.txt |
ḿ␊ḿ
|
7 B | |
| 000695 | unicode/part1/U+1E40 NormalizationTest.txt |
Ṁ␊Ṁ
|
7 B | |
| 000696 | unicode/part1/U+1E41 NormalizationTest.txt |
ṁ␊ṁ
|
7 B | |
| 000697 | unicode/part1/U+1E42 NormalizationTest.txt |
Ṃ␊Ṃ
|
7 B | |
| 000698 | unicode/part1/U+1E43 NormalizationTest.txt |
ṃ␊ṃ
|
7 B | |
| 000699 | unicode/part1/U+1E44 NormalizationTest.txt |
Ṅ␊Ṅ
|
7 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