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
3,833 of 11,911 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 002239 | unicode/part1/U+3377 NormalizationTest.txt |
㍷␊dm
|
6 B | |
| 002240 | unicode/part1/U+3378 NormalizationTest.txt |
㍸␊dm2
|
7 B | |
| 002241 | unicode/part1/U+3379 NormalizationTest.txt |
㍹␊dm3
|
7 B | |
| 002242 | unicode/part1/U+337A NormalizationTest.txt |
㍺␊IU
|
6 B | |
| 002243 | unicode/part1/U+337B NormalizationTest.txt |
㍻␊平成
|
10 B | |
| 002244 | unicode/part1/U+337C NormalizationTest.txt |
㍼␊昭和
|
10 B | |
| 002245 | unicode/part1/U+337D NormalizationTest.txt |
㍽␊大正
|
10 B | |
| 002246 | unicode/part1/U+337E NormalizationTest.txt |
㍾␊明治
|
10 B | |
| 002247 | unicode/part1/U+337F NormalizationTest.txt |
㍿␊株式会社
|
16 B | |
| 002248 | unicode/part1/U+3380 NormalizationTest.txt |
㎀␊pA
|
6 B | |
| 002249 | unicode/part1/U+3381 NormalizationTest.txt |
㎁␊nA
|
6 B | |
| 002250 | unicode/part1/U+3382 NormalizationTest.txt |
㎂␊μA
|
7 B | |
| 002251 | unicode/part1/U+3383 NormalizationTest.txt |
㎃␊mA
|
6 B | |
| 002252 | unicode/part1/U+3384 NormalizationTest.txt |
㎄␊kA
|
6 B | |
| 002253 | unicode/part1/U+3385 NormalizationTest.txt |
㎅␊KB
|
6 B | |
| 002254 | unicode/part1/U+3386 NormalizationTest.txt |
㎆␊MB
|
6 B | |
| 002255 | unicode/part1/U+3387 NormalizationTest.txt |
㎇␊GB
|
6 B | |
| 002256 | unicode/part1/U+3388 NormalizationTest.txt |
㎈␊cal
|
7 B | |
| 002257 | unicode/part1/U+3389 NormalizationTest.txt |
㎉␊kcal
|
8 B | |
| 002258 | unicode/part1/U+338A NormalizationTest.txt |
㎊␊pF
|
6 B | |
| 002259 | unicode/part1/U+338B NormalizationTest.txt |
㎋␊nF
|
6 B | |
| 002260 | unicode/part1/U+338C NormalizationTest.txt |
㎌␊μF
|
7 B | |
| 002261 | unicode/part1/U+338D NormalizationTest.txt |
㎍␊μg
|
7 B | |
| 002262 | unicode/part1/U+338E NormalizationTest.txt |
㎎␊mg
|
6 B | |
| 002263 | unicode/part1/U+338F NormalizationTest.txt |
㎏␊kg
|
6 B | |
| 002264 | unicode/part1/U+3390 NormalizationTest.txt |
㎐␊Hz
|
6 B | |
| 002265 | unicode/part1/U+3391 NormalizationTest.txt |
㎑␊kHz
|
7 B | |
| 002266 | unicode/part1/U+3392 NormalizationTest.txt |
㎒␊MHz
|
7 B | |
| 002267 | unicode/part1/U+3393 NormalizationTest.txt |
㎓␊GHz
|
7 B | |
| 002268 | unicode/part1/U+3394 NormalizationTest.txt |
㎔␊THz
|
7 B | |
| 002269 | unicode/part1/U+3395 NormalizationTest.txt |
㎕␊μl
|
7 B | |
| 002270 | unicode/part1/U+3396 NormalizationTest.txt |
㎖␊ml
|
6 B | |
| 002271 | unicode/part1/U+3397 NormalizationTest.txt |
㎗␊dl
|
6 B | |
| 002272 | unicode/part1/U+3398 NormalizationTest.txt |
㎘␊kl
|
6 B | |
| 002273 | unicode/part1/U+3399 NormalizationTest.txt |
㎙␊fm
|
6 B | |
| 002274 | unicode/part1/U+339A NormalizationTest.txt |
㎚␊nm
|
6 B | |
| 002275 | unicode/part1/U+339B NormalizationTest.txt |
㎛␊μm
|
7 B | |
| 002276 | unicode/part1/U+339C NormalizationTest.txt |
㎜␊mm
|
6 B | |
| 002277 | unicode/part1/U+339D NormalizationTest.txt |
㎝␊cm
|
6 B | |
| 002278 | unicode/part1/U+339E NormalizationTest.txt |
㎞␊km
|
6 B | |
| 002279 | unicode/part1/U+339F NormalizationTest.txt |
㎟␊mm2
|
7 B | |
| 002280 | unicode/part1/U+33A0 NormalizationTest.txt |
㎠␊cm2
|
7 B | |
| 002281 | unicode/part1/U+33A1 NormalizationTest.txt |
㎡␊m2
|
6 B | |
| 002282 | unicode/part1/U+33A2 NormalizationTest.txt |
㎢␊km2
|
7 B | |
| 002283 | unicode/part1/U+33A3 NormalizationTest.txt |
㎣␊mm3
|
7 B | |
| 002284 | unicode/part1/U+33A4 NormalizationTest.txt |
㎤␊cm3
|
7 B | |
| 002285 | unicode/part1/U+33A5 NormalizationTest.txt |
㎥␊m3
|
6 B | |
| 002286 | unicode/part1/U+33A6 NormalizationTest.txt |
㎦␊km3
|
7 B | |
| 002287 | unicode/part1/U+33A7 NormalizationTest.txt |
㎧␊m∕s
|
9 B | |
| 002288 | unicode/part1/U+33A8 NormalizationTest.txt |
㎨␊m∕s2
|
10 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