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
956 of 11,911 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 000214 | unicode/part1/U+0176 NormalizationTest.txt |
Ŷ␊Ŷ
|
6 B | |
| 000215 | unicode/part1/U+0177 NormalizationTest.txt |
ŷ␊ŷ
|
6 B | |
| 000216 | unicode/part1/U+0178 NormalizationTest.txt |
Ÿ␊Ÿ
|
6 B | |
| 000217 | unicode/part1/U+0179 NormalizationTest.txt |
Ź␊Ź
|
6 B | |
| 000218 | unicode/part1/U+017A NormalizationTest.txt |
ź␊ź
|
6 B | |
| 000219 | unicode/part1/U+017B NormalizationTest.txt |
Ż␊Ż
|
6 B | |
| 000220 | unicode/part1/U+017C NormalizationTest.txt |
ż␊ż
|
6 B | |
| 000221 | unicode/part1/U+017D NormalizationTest.txt |
Ž␊Ž
|
6 B | |
| 000222 | unicode/part1/U+017E NormalizationTest.txt |
ž␊ž
|
6 B | |
| 000224 | unicode/part1/U+01A0 NormalizationTest.txt |
Ơ␊Ơ
|
6 B | |
| 000225 | unicode/part1/U+01A1 NormalizationTest.txt |
ơ␊ơ
|
6 B | |
| 000226 | unicode/part1/U+01AF NormalizationTest.txt |
Ư␊Ư
|
6 B | |
| 000227 | unicode/part1/U+01B0 NormalizationTest.txt |
ư␊ư
|
6 B | |
| 000237 | unicode/part1/U+01CD NormalizationTest.txt |
Ǎ␊Ǎ
|
6 B | |
| 000238 | unicode/part1/U+01CE NormalizationTest.txt |
ǎ␊ǎ
|
6 B | |
| 000239 | unicode/part1/U+01CF NormalizationTest.txt |
Ǐ␊Ǐ
|
6 B | |
| 000240 | unicode/part1/U+01D0 NormalizationTest.txt |
ǐ␊ǐ
|
6 B | |
| 000241 | unicode/part1/U+01D1 NormalizationTest.txt |
Ǒ␊Ǒ
|
6 B | |
| 000242 | unicode/part1/U+01D2 NormalizationTest.txt |
ǒ␊ǒ
|
6 B | |
| 000243 | unicode/part1/U+01D3 NormalizationTest.txt |
Ǔ␊Ǔ
|
6 B | |
| 000244 | unicode/part1/U+01D4 NormalizationTest.txt |
ǔ␊ǔ
|
6 B | |
| 000245 | unicode/part1/U+01D5 NormalizationTest.txt |
Ǖ␊Ǖ
|
8 B | |
| 000246 | unicode/part1/U+01D6 NormalizationTest.txt |
ǖ␊ǖ
|
8 B | |
| 000247 | unicode/part1/U+01D7 NormalizationTest.txt |
Ǘ␊Ǘ
|
8 B | |
| 000248 | unicode/part1/U+01D8 NormalizationTest.txt |
ǘ␊ǘ
|
8 B | |
| 000249 | unicode/part1/U+01D9 NormalizationTest.txt |
Ǚ␊Ǚ
|
8 B | |
| 000250 | unicode/part1/U+01DA NormalizationTest.txt |
ǚ␊ǚ
|
8 B | |
| 000251 | unicode/part1/U+01DB NormalizationTest.txt |
Ǜ␊Ǜ
|
8 B | |
| 000252 | unicode/part1/U+01DC NormalizationTest.txt |
ǜ␊ǜ
|
8 B | |
| 000253 | unicode/part1/U+01DE NormalizationTest.txt |
Ǟ␊Ǟ
|
8 B | |
| 000254 | unicode/part1/U+01DF NormalizationTest.txt |
ǟ␊ǟ
|
8 B | |
| 000255 | unicode/part1/U+01E0 NormalizationTest.txt |
Ǡ␊Ǡ
|
8 B | |
| 000256 | unicode/part1/U+01E1 NormalizationTest.txt |
ǡ␊ǡ
|
8 B | |
| 000257 | unicode/part1/U+01E2 NormalizationTest.txt |
Ǣ␊Ǣ
|
7 B | |
| 000258 | unicode/part1/U+01E3 NormalizationTest.txt |
ǣ␊ǣ
|
7 B | |
| 000259 | unicode/part1/U+01E6 NormalizationTest.txt |
Ǧ␊Ǧ
|
6 B | |
| 000260 | unicode/part1/U+01E7 NormalizationTest.txt |
ǧ␊ǧ
|
6 B | |
| 000261 | unicode/part1/U+01E8 NormalizationTest.txt |
Ǩ␊Ǩ
|
6 B | |
| 000262 | unicode/part1/U+01E9 NormalizationTest.txt |
ǩ␊ǩ
|
6 B | |
| 000263 | unicode/part1/U+01EA NormalizationTest.txt |
Ǫ␊Ǫ
|
6 B | |
| 000264 | unicode/part1/U+01EB NormalizationTest.txt |
ǫ␊ǫ
|
6 B | |
| 000265 | unicode/part1/U+01EC NormalizationTest.txt |
Ǭ␊Ǭ
|
8 B | |
| 000266 | unicode/part1/U+01ED NormalizationTest.txt |
ǭ␊ǭ
|
8 B | |
| 000267 | unicode/part1/U+01EE NormalizationTest.txt |
Ǯ␊Ǯ
|
7 B | |
| 000268 | unicode/part1/U+01EF NormalizationTest.txt |
ǯ␊ǯ
|
7 B | |
| 000269 | unicode/part1/U+01F0 NormalizationTest.txt |
ǰ␊ǰ
|
6 B | |
| 000273 | unicode/part1/U+01F4 NormalizationTest.txt |
Ǵ␊Ǵ
|
6 B | |
| 000274 | unicode/part1/U+01F5 NormalizationTest.txt |
ǵ␊ǵ
|
6 B | |
| 000275 | unicode/part1/U+01F8 NormalizationTest.txt |
Ǹ␊Ǹ
|
6 B | |
| 000276 | unicode/part1/U+01F9 NormalizationTest.txt |
ǹ␊ǹ
|
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