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
5,928 of 11,911 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 000195 | unicode/part1/U+0161 NormalizationTest.txt |
š␊š
|
6 B | |
| 000196 | unicode/part1/U+0162 NormalizationTest.txt |
Ţ␊Ţ
|
6 B | |
| 000197 | unicode/part1/U+0163 NormalizationTest.txt |
ţ␊ţ
|
6 B | |
| 000198 | unicode/part1/U+0164 NormalizationTest.txt |
Ť␊Ť
|
6 B | |
| 000199 | unicode/part1/U+0165 NormalizationTest.txt |
ť␊ť
|
6 B | |
| 000200 | unicode/part1/U+0168 NormalizationTest.txt |
Ũ␊Ũ
|
6 B | |
| 000201 | unicode/part1/U+0169 NormalizationTest.txt |
ũ␊ũ
|
6 B | |
| 000202 | unicode/part1/U+016A NormalizationTest.txt |
Ū␊Ū
|
6 B | |
| 000203 | unicode/part1/U+016B NormalizationTest.txt |
ū␊ū
|
6 B | |
| 000204 | unicode/part1/U+016C NormalizationTest.txt |
Ŭ␊Ŭ
|
6 B | |
| 000205 | unicode/part1/U+016D NormalizationTest.txt |
ŭ␊ŭ
|
6 B | |
| 000206 | unicode/part1/U+016E NormalizationTest.txt |
Ů␊Ů
|
6 B | |
| 000207 | unicode/part1/U+016F NormalizationTest.txt |
ů␊ů
|
6 B | |
| 000208 | unicode/part1/U+0170 NormalizationTest.txt |
Ű␊Ű
|
6 B | |
| 000209 | unicode/part1/U+0171 NormalizationTest.txt |
ű␊ű
|
6 B | |
| 000210 | unicode/part1/U+0172 NormalizationTest.txt |
Ų␊Ų
|
6 B | |
| 000211 | unicode/part1/U+0173 NormalizationTest.txt |
ų␊ų
|
6 B | |
| 000212 | unicode/part1/U+0174 NormalizationTest.txt |
Ŵ␊Ŵ
|
6 B | |
| 000213 | unicode/part1/U+0175 NormalizationTest.txt |
ŵ␊ŵ
|
6 B | |
| 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 | |
| 000223 | unicode/part1/U+017F NormalizationTest.txt |
ſ␊s
|
4 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 | |
| 000228 | unicode/part1/U+01C4 NormalizationTest.txt |
DŽ␊DŽ␊DŽ
|
11 B | |
| 000229 | unicode/part1/U+01C5 NormalizationTest.txt |
Dž␊Dž␊Dž
|
11 B | |
| 000230 | unicode/part1/U+01C6 NormalizationTest.txt |
dž␊dž␊dž
|
11 B | |
| 000231 | unicode/part1/U+01C7 NormalizationTest.txt |
LJ␊LJ
|
5 B | |
| 000232 | unicode/part1/U+01C8 NormalizationTest.txt |
Lj␊Lj
|
5 B | |
| 000233 | unicode/part1/U+01C9 NormalizationTest.txt |
lj␊lj
|
5 B | |
| 000234 | unicode/part1/U+01CA NormalizationTest.txt |
NJ␊NJ
|
5 B | |
| 000235 | unicode/part1/U+01CB NormalizationTest.txt |
Nj␊Nj
|
5 B | |
| 000236 | unicode/part1/U+01CC NormalizationTest.txt |
nj␊nj
|
5 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 |
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