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 |
|---|---|---|---|---|
| 000161 | unicode/part1/U+0139 NormalizationTest.txt |
Ĺ␊Ĺ
|
6 B | |
| 000162 | unicode/part1/U+013A NormalizationTest.txt |
ĺ␊ĺ
|
6 B | |
| 000163 | unicode/part1/U+013B NormalizationTest.txt |
Ļ␊Ļ
|
6 B | |
| 000164 | unicode/part1/U+013C NormalizationTest.txt |
ļ␊ļ
|
6 B | |
| 000165 | unicode/part1/U+013D NormalizationTest.txt |
Ľ␊Ľ
|
6 B | |
| 000166 | unicode/part1/U+013E NormalizationTest.txt |
ľ␊ľ
|
6 B | |
| 000169 | unicode/part1/U+0143 NormalizationTest.txt |
Ń␊Ń
|
6 B | |
| 000170 | unicode/part1/U+0144 NormalizationTest.txt |
ń␊ń
|
6 B | |
| 000171 | unicode/part1/U+0145 NormalizationTest.txt |
Ņ␊Ņ
|
6 B | |
| 000172 | unicode/part1/U+0146 NormalizationTest.txt |
ņ␊ņ
|
6 B | |
| 000173 | unicode/part1/U+0147 NormalizationTest.txt |
Ň␊Ň
|
6 B | |
| 000174 | unicode/part1/U+0148 NormalizationTest.txt |
ň␊ň
|
6 B | |
| 000176 | unicode/part1/U+014C NormalizationTest.txt |
Ō␊Ō
|
6 B | |
| 000177 | unicode/part1/U+014D NormalizationTest.txt |
ō␊ō
|
6 B | |
| 000178 | unicode/part1/U+014E NormalizationTest.txt |
Ŏ␊Ŏ
|
6 B | |
| 000179 | unicode/part1/U+014F NormalizationTest.txt |
ŏ␊ŏ
|
6 B | |
| 000180 | unicode/part1/U+0150 NormalizationTest.txt |
Ő␊Ő
|
6 B | |
| 000181 | unicode/part1/U+0151 NormalizationTest.txt |
ő␊ő
|
6 B | |
| 000182 | unicode/part1/U+0154 NormalizationTest.txt |
Ŕ␊Ŕ
|
6 B | |
| 000183 | unicode/part1/U+0155 NormalizationTest.txt |
ŕ␊ŕ
|
6 B | |
| 000184 | unicode/part1/U+0156 NormalizationTest.txt |
Ŗ␊Ŗ
|
6 B | |
| 000185 | unicode/part1/U+0157 NormalizationTest.txt |
ŗ␊ŗ
|
6 B | |
| 000186 | unicode/part1/U+0158 NormalizationTest.txt |
Ř␊Ř
|
6 B | |
| 000187 | unicode/part1/U+0159 NormalizationTest.txt |
ř␊ř
|
6 B | |
| 000188 | unicode/part1/U+015A NormalizationTest.txt |
Ś␊Ś
|
6 B | |
| 000189 | unicode/part1/U+015B NormalizationTest.txt |
ś␊ś
|
6 B | |
| 000190 | unicode/part1/U+015C NormalizationTest.txt |
Ŝ␊Ŝ
|
6 B | |
| 000191 | unicode/part1/U+015D NormalizationTest.txt |
ŝ␊ŝ
|
6 B | |
| 000192 | unicode/part1/U+015E NormalizationTest.txt |
Ş␊Ş
|
6 B | |
| 000193 | unicode/part1/U+015F NormalizationTest.txt |
ş␊ş
|
6 B | |
| 000194 | unicode/part1/U+0160 NormalizationTest.txt |
Š␊Š
|
6 B | |
| 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 |
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