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 |
|---|---|---|---|---|
| 002300 | unicode/part1/U+33B4 NormalizationTest.txt |
㎴␊pV
|
6 B | |
| 002301 | unicode/part1/U+33B5 NormalizationTest.txt |
㎵␊nV
|
6 B | |
| 002302 | unicode/part1/U+33B6 NormalizationTest.txt |
㎶␊μV
|
7 B | |
| 002303 | unicode/part1/U+33B7 NormalizationTest.txt |
㎷␊mV
|
6 B | |
| 002304 | unicode/part1/U+33B8 NormalizationTest.txt |
㎸␊kV
|
6 B | |
| 002305 | unicode/part1/U+33B9 NormalizationTest.txt |
㎹␊MV
|
6 B | |
| 002306 | unicode/part1/U+33BA NormalizationTest.txt |
㎺␊pW
|
6 B | |
| 002307 | unicode/part1/U+33BB NormalizationTest.txt |
㎻␊nW
|
6 B | |
| 002308 | unicode/part1/U+33BC NormalizationTest.txt |
㎼␊μW
|
7 B | |
| 002309 | unicode/part1/U+33BD NormalizationTest.txt |
㎽␊mW
|
6 B | |
| 002310 | unicode/part1/U+33BE NormalizationTest.txt |
㎾␊kW
|
6 B | |
| 002311 | unicode/part1/U+33BF NormalizationTest.txt |
㎿␊MW
|
6 B | |
| 002312 | unicode/part1/U+33C0 NormalizationTest.txt |
㏀␊kΩ
|
7 B | |
| 002313 | unicode/part1/U+33C1 NormalizationTest.txt |
㏁␊MΩ
|
7 B | |
| 002314 | unicode/part1/U+33C2 NormalizationTest.txt |
㏂␊a.m.
|
8 B | |
| 002315 | unicode/part1/U+33C3 NormalizationTest.txt |
㏃␊Bq
|
6 B | |
| 002316 | unicode/part1/U+33C4 NormalizationTest.txt |
㏄␊cc
|
6 B | |
| 002317 | unicode/part1/U+33C5 NormalizationTest.txt |
㏅␊cd
|
6 B | |
| 002318 | unicode/part1/U+33C6 NormalizationTest.txt |
㏆␊C∕kg
|
10 B | |
| 002319 | unicode/part1/U+33C7 NormalizationTest.txt |
㏇␊Co.
|
7 B | |
| 002320 | unicode/part1/U+33C8 NormalizationTest.txt |
㏈␊dB
|
6 B | |
| 002321 | unicode/part1/U+33C9 NormalizationTest.txt |
㏉␊Gy
|
6 B | |
| 002322 | unicode/part1/U+33CA NormalizationTest.txt |
㏊␊ha
|
6 B | |
| 002323 | unicode/part1/U+33CB NormalizationTest.txt |
㏋␊HP
|
6 B | |
| 002324 | unicode/part1/U+33CC NormalizationTest.txt |
㏌␊in
|
6 B | |
| 002325 | unicode/part1/U+33CD NormalizationTest.txt |
㏍␊KK
|
6 B | |
| 002326 | unicode/part1/U+33CE NormalizationTest.txt |
㏎␊KM
|
6 B | |
| 002327 | unicode/part1/U+33CF NormalizationTest.txt |
㏏␊kt
|
6 B | |
| 002328 | unicode/part1/U+33D0 NormalizationTest.txt |
㏐␊lm
|
6 B | |
| 002329 | unicode/part1/U+33D1 NormalizationTest.txt |
㏑␊ln
|
6 B | |
| 002330 | unicode/part1/U+33D2 NormalizationTest.txt |
㏒␊log
|
7 B | |
| 002331 | unicode/part1/U+33D3 NormalizationTest.txt |
㏓␊lx
|
6 B | |
| 002332 | unicode/part1/U+33D4 NormalizationTest.txt |
㏔␊mb
|
6 B | |
| 002333 | unicode/part1/U+33D5 NormalizationTest.txt |
㏕␊mil
|
7 B | |
| 002334 | unicode/part1/U+33D6 NormalizationTest.txt |
㏖␊mol
|
7 B | |
| 002335 | unicode/part1/U+33D7 NormalizationTest.txt |
㏗␊PH
|
6 B | |
| 002336 | unicode/part1/U+33D8 NormalizationTest.txt |
㏘␊p.m.
|
8 B | |
| 002337 | unicode/part1/U+33D9 NormalizationTest.txt |
㏙␊PPM
|
7 B | |
| 002338 | unicode/part1/U+33DA NormalizationTest.txt |
㏚␊PR
|
6 B | |
| 002339 | unicode/part1/U+33DB NormalizationTest.txt |
㏛␊sr
|
6 B | |
| 002340 | unicode/part1/U+33DC NormalizationTest.txt |
㏜␊Sv
|
6 B | |
| 002341 | unicode/part1/U+33DD NormalizationTest.txt |
㏝␊Wb
|
6 B | |
| 002342 | unicode/part1/U+33DE NormalizationTest.txt |
㏞␊V∕m
|
9 B | |
| 002343 | unicode/part1/U+33DF NormalizationTest.txt |
㏟␊A∕m
|
9 B | |
| 002344 | unicode/part1/U+33E0 NormalizationTest.txt |
㏠␊1日
|
8 B | |
| 002345 | unicode/part1/U+33E1 NormalizationTest.txt |
㏡␊2日
|
8 B | |
| 002346 | unicode/part1/U+33E2 NormalizationTest.txt |
㏢␊3日
|
8 B | |
| 002347 | unicode/part1/U+33E3 NormalizationTest.txt |
㏣␊4日
|
8 B | |
| 002348 | unicode/part1/U+33E4 NormalizationTest.txt |
㏤␊5日
|
8 B | |
| 002349 | unicode/part1/U+33E5 NormalizationTest.txt |
㏥␊6日
|
8 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