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 |
|---|---|---|---|---|
| 005000 | unicode/part1/U+1D7BF NormalizationTest.txt |
๐ฟโฯ
|
7 B | |
| 005001 | unicode/part1/U+1D7C0 NormalizationTest.txt |
๐โฯ
|
7 B | |
| 005002 | unicode/part1/U+1D7C1 NormalizationTest.txt |
๐โฯ
|
7 B | |
| 005003 | unicode/part1/U+1D7C2 NormalizationTest.txt |
๐โฯ
|
7 B | |
| 005004 | unicode/part1/U+1D7C3 NormalizationTest.txt |
๐โโ
|
8 B | |
| 005005 | unicode/part1/U+1D7C4 NormalizationTest.txt |
๐โฮต
|
7 B | |
| 005006 | unicode/part1/U+1D7C5 NormalizationTest.txt |
๐
โฮธ
|
7 B | |
| 005007 | unicode/part1/U+1D7C6 NormalizationTest.txt |
๐โฮบ
|
7 B | |
| 005008 | unicode/part1/U+1D7C7 NormalizationTest.txt |
๐โฯ
|
7 B | |
| 005009 | unicode/part1/U+1D7C8 NormalizationTest.txt |
๐โฯ
|
7 B | |
| 005010 | unicode/part1/U+1D7C9 NormalizationTest.txt |
๐โฯ
|
7 B | |
| 005011 | unicode/part1/U+1D7CA NormalizationTest.txt |
๐โฯ
|
7 B | |
| 005012 | unicode/part1/U+1D7CB NormalizationTest.txt |
๐โฯ
|
7 B | |
| 005013 | unicode/part1/U+1D7CE NormalizationTest.txt |
๐โ0
|
6 B | |
| 005014 | unicode/part1/U+1D7CF NormalizationTest.txt |
๐โ1
|
6 B | |
| 005015 | unicode/part1/U+1D7D0 NormalizationTest.txt |
๐โ2
|
6 B | |
| 005016 | unicode/part1/U+1D7D1 NormalizationTest.txt |
๐โ3
|
6 B | |
| 005017 | unicode/part1/U+1D7D2 NormalizationTest.txt |
๐โ4
|
6 B | |
| 005018 | unicode/part1/U+1D7D3 NormalizationTest.txt |
๐โ5
|
6 B | |
| 005019 | unicode/part1/U+1D7D4 NormalizationTest.txt |
๐โ6
|
6 B | |
| 005020 | unicode/part1/U+1D7D5 NormalizationTest.txt |
๐โ7
|
6 B | |
| 005021 | unicode/part1/U+1D7D6 NormalizationTest.txt |
๐โ8
|
6 B | |
| 005022 | unicode/part1/U+1D7D7 NormalizationTest.txt |
๐โ9
|
6 B | |
| 005023 | unicode/part1/U+1D7D8 NormalizationTest.txt |
๐โ0
|
6 B | |
| 005024 | unicode/part1/U+1D7D9 NormalizationTest.txt |
๐โ1
|
6 B | |
| 005025 | unicode/part1/U+1D7DA NormalizationTest.txt |
๐โ2
|
6 B | |
| 005026 | unicode/part1/U+1D7DB NormalizationTest.txt |
๐โ3
|
6 B | |
| 005027 | unicode/part1/U+1D7DC NormalizationTest.txt |
๐โ4
|
6 B | |
| 005028 | unicode/part1/U+1D7DD NormalizationTest.txt |
๐โ5
|
6 B | |
| 005029 | unicode/part1/U+1D7DE NormalizationTest.txt |
๐โ6
|
6 B | |
| 005030 | unicode/part1/U+1D7DF NormalizationTest.txt |
๐โ7
|
6 B | |
| 005031 | unicode/part1/U+1D7E0 NormalizationTest.txt |
๐ โ8
|
6 B | |
| 005032 | unicode/part1/U+1D7E1 NormalizationTest.txt |
๐กโ9
|
6 B | |
| 005033 | unicode/part1/U+1D7E2 NormalizationTest.txt |
๐ขโ0
|
6 B | |
| 005034 | unicode/part1/U+1D7E3 NormalizationTest.txt |
๐ฃโ1
|
6 B | |
| 005035 | unicode/part1/U+1D7E4 NormalizationTest.txt |
๐คโ2
|
6 B | |
| 005036 | unicode/part1/U+1D7E5 NormalizationTest.txt |
๐ฅโ3
|
6 B | |
| 005037 | unicode/part1/U+1D7E6 NormalizationTest.txt |
๐ฆโ4
|
6 B | |
| 005038 | unicode/part1/U+1D7E7 NormalizationTest.txt |
๐งโ5
|
6 B | |
| 005039 | unicode/part1/U+1D7E8 NormalizationTest.txt |
๐จโ6
|
6 B | |
| 005040 | unicode/part1/U+1D7E9 NormalizationTest.txt |
๐ฉโ7
|
6 B | |
| 005041 | unicode/part1/U+1D7EA NormalizationTest.txt |
๐ชโ8
|
6 B | |
| 005042 | unicode/part1/U+1D7EB NormalizationTest.txt |
๐ซโ9
|
6 B | |
| 005043 | unicode/part1/U+1D7EC NormalizationTest.txt |
๐ฌโ0
|
6 B | |
| 005044 | unicode/part1/U+1D7ED NormalizationTest.txt |
๐ญโ1
|
6 B | |
| 005045 | unicode/part1/U+1D7EE NormalizationTest.txt |
๐ฎโ2
|
6 B | |
| 005046 | unicode/part1/U+1D7EF NormalizationTest.txt |
๐ฏโ3
|
6 B | |
| 005047 | unicode/part1/U+1D7F0 NormalizationTest.txt |
๐ฐโ4
|
6 B | |
| 005048 | unicode/part1/U+1D7F1 NormalizationTest.txt |
๐ฑโ5
|
6 B | |
| 005049 | unicode/part1/U+1D7F2 NormalizationTest.txt |
๐ฒโ6
|
6 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