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 |
|---|---|---|---|---|
| 000295 | unicode/part1/U+020C NormalizationTest.txt |
Ȍ␊Ȍ
|
6 B | |
| 000296 | unicode/part1/U+020D NormalizationTest.txt |
ȍ␊ȍ
|
6 B | |
| 000297 | unicode/part1/U+020E NormalizationTest.txt |
Ȏ␊Ȏ
|
6 B | |
| 000298 | unicode/part1/U+020F NormalizationTest.txt |
ȏ␊ȏ
|
6 B | |
| 000299 | unicode/part1/U+0210 NormalizationTest.txt |
Ȑ␊Ȑ
|
6 B | |
| 000300 | unicode/part1/U+0211 NormalizationTest.txt |
ȑ␊ȑ
|
6 B | |
| 000301 | unicode/part1/U+0212 NormalizationTest.txt |
Ȓ␊Ȓ
|
6 B | |
| 000302 | unicode/part1/U+0213 NormalizationTest.txt |
ȓ␊ȓ
|
6 B | |
| 000303 | unicode/part1/U+0214 NormalizationTest.txt |
Ȕ␊Ȕ
|
6 B | |
| 000304 | unicode/part1/U+0215 NormalizationTest.txt |
ȕ␊ȕ
|
6 B | |
| 000305 | unicode/part1/U+0216 NormalizationTest.txt |
Ȗ␊Ȗ
|
6 B | |
| 000306 | unicode/part1/U+0217 NormalizationTest.txt |
ȗ␊ȗ
|
6 B | |
| 000307 | unicode/part1/U+0218 NormalizationTest.txt |
Ș␊Ș
|
6 B | |
| 000308 | unicode/part1/U+0219 NormalizationTest.txt |
ș␊ș
|
6 B | |
| 000309 | unicode/part1/U+021A NormalizationTest.txt |
Ț␊Ț
|
6 B | |
| 000310 | unicode/part1/U+021B NormalizationTest.txt |
ț␊ț
|
6 B | |
| 000311 | unicode/part1/U+021E NormalizationTest.txt |
Ȟ␊Ȟ
|
6 B | |
| 000312 | unicode/part1/U+021F NormalizationTest.txt |
ȟ␊ȟ
|
6 B | |
| 000313 | unicode/part1/U+0226 NormalizationTest.txt |
Ȧ␊Ȧ
|
6 B | |
| 000314 | unicode/part1/U+0227 NormalizationTest.txt |
ȧ␊ȧ
|
6 B | |
| 000315 | unicode/part1/U+0228 NormalizationTest.txt |
Ȩ␊Ȩ
|
6 B | |
| 000316 | unicode/part1/U+0229 NormalizationTest.txt |
ȩ␊ȩ
|
6 B | |
| 000317 | unicode/part1/U+022A NormalizationTest.txt |
Ȫ␊Ȫ
|
8 B | |
| 000318 | unicode/part1/U+022B NormalizationTest.txt |
ȫ␊ȫ
|
8 B | |
| 000319 | unicode/part1/U+022C NormalizationTest.txt |
Ȭ␊Ȭ
|
8 B | |
| 000320 | unicode/part1/U+022D NormalizationTest.txt |
ȭ␊ȭ
|
8 B | |
| 000321 | unicode/part1/U+022E NormalizationTest.txt |
Ȯ␊Ȯ
|
6 B | |
| 000322 | unicode/part1/U+022F NormalizationTest.txt |
ȯ␊ȯ
|
6 B | |
| 000323 | unicode/part1/U+0230 NormalizationTest.txt |
Ȱ␊Ȱ
|
8 B | |
| 000324 | unicode/part1/U+0231 NormalizationTest.txt |
ȱ␊ȱ
|
8 B | |
| 000325 | unicode/part1/U+0232 NormalizationTest.txt |
Ȳ␊Ȳ
|
6 B | |
| 000326 | unicode/part1/U+0233 NormalizationTest.txt |
ȳ␊ȳ
|
6 B | |
| 000327 | unicode/part1/U+02B0 NormalizationTest.txt |
ʰ␊h
|
4 B | |
| 000328 | unicode/part1/U+02B1 NormalizationTest.txt |
ʱ␊ɦ
|
5 B | |
| 000329 | unicode/part1/U+02B2 NormalizationTest.txt |
ʲ␊j
|
4 B | |
| 000330 | unicode/part1/U+02B3 NormalizationTest.txt |
ʳ␊r
|
4 B | |
| 000331 | unicode/part1/U+02B4 NormalizationTest.txt |
ʴ␊ɹ
|
5 B | |
| 000332 | unicode/part1/U+02B5 NormalizationTest.txt |
ʵ␊ɻ
|
5 B | |
| 000333 | unicode/part1/U+02B6 NormalizationTest.txt |
ʶ␊ʁ
|
5 B | |
| 000334 | unicode/part1/U+02B7 NormalizationTest.txt |
ʷ␊w
|
4 B | |
| 000335 | unicode/part1/U+02B8 NormalizationTest.txt |
ʸ␊y
|
4 B | |
| 000336 | unicode/part1/U+02D8 NormalizationTest.txt |
˘␊ ̆
|
6 B | |
| 000337 | unicode/part1/U+02D9 NormalizationTest.txt |
˙␊ ̇
|
6 B | |
| 000338 | unicode/part1/U+02DA NormalizationTest.txt |
˚␊ ̊
|
6 B | |
| 000339 | unicode/part1/U+02DB NormalizationTest.txt |
˛␊ ̨
|
6 B | |
| 000340 | unicode/part1/U+02DC NormalizationTest.txt |
˜␊ ̃
|
6 B | |
| 000341 | unicode/part1/U+02DD NormalizationTest.txt |
˝␊ ̋
|
6 B | |
| 000342 | unicode/part1/U+02E0 NormalizationTest.txt |
ˠ␊ɣ
|
5 B | |
| 000343 | unicode/part1/U+02E1 NormalizationTest.txt |
ˡ␊l
|
4 B | |
| 000344 | unicode/part1/U+02E2 NormalizationTest.txt |
ˢ␊s
|
4 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