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 |
|---|---|---|---|---|
| 000150 | unicode/part1/U+012C NormalizationTest.txt |
Ĭ␊Ĭ
|
6 B | |
| 000151 | unicode/part1/U+012D NormalizationTest.txt |
ĭ␊ĭ
|
6 B | |
| 000152 | unicode/part1/U+012E NormalizationTest.txt |
Į␊Į
|
6 B | |
| 000153 | unicode/part1/U+012F NormalizationTest.txt |
į␊į
|
6 B | |
| 000154 | unicode/part1/U+0130 NormalizationTest.txt |
İ␊İ
|
6 B | |
| 000155 | unicode/part1/U+0132 NormalizationTest.txt |
IJ␊IJ
|
5 B | |
| 000156 | unicode/part1/U+0133 NormalizationTest.txt |
ij␊ij
|
5 B | |
| 000157 | unicode/part1/U+0134 NormalizationTest.txt |
Ĵ␊Ĵ
|
6 B | |
| 000158 | unicode/part1/U+0135 NormalizationTest.txt |
ĵ␊ĵ
|
6 B | |
| 000159 | unicode/part1/U+0136 NormalizationTest.txt |
Ķ␊Ķ
|
6 B | |
| 000160 | unicode/part1/U+0137 NormalizationTest.txt |
ķ␊ķ
|
6 B | |
| 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 | |
| 000167 | unicode/part1/U+013F NormalizationTest.txt |
Ŀ␊L·
|
6 B | |
| 000168 | unicode/part1/U+0140 NormalizationTest.txt |
ŀ␊l·
|
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 | |
| 000175 | unicode/part1/U+0149 NormalizationTest.txt |
ʼn␊ʼn
|
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 |
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