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 |
|---|---|---|---|---|
| 002350 | unicode/part1/U+33E6 NormalizationTest.txt |
㏦␊7日
|
8 B | |
| 002351 | unicode/part1/U+33E7 NormalizationTest.txt |
㏧␊8日
|
8 B | |
| 002352 | unicode/part1/U+33E8 NormalizationTest.txt |
㏨␊9日
|
8 B | |
| 002353 | unicode/part1/U+33E9 NormalizationTest.txt |
㏩␊10日
|
9 B | |
| 002354 | unicode/part1/U+33EA NormalizationTest.txt |
㏪␊11日
|
9 B | |
| 002355 | unicode/part1/U+33EB NormalizationTest.txt |
㏫␊12日
|
9 B | |
| 002356 | unicode/part1/U+33EC NormalizationTest.txt |
㏬␊13日
|
9 B | |
| 002357 | unicode/part1/U+33ED NormalizationTest.txt |
㏭␊14日
|
9 B | |
| 002358 | unicode/part1/U+33EE NormalizationTest.txt |
㏮␊15日
|
9 B | |
| 002359 | unicode/part1/U+33EF NormalizationTest.txt |
㏯␊16日
|
9 B | |
| 002360 | unicode/part1/U+33F0 NormalizationTest.txt |
㏰␊17日
|
9 B | |
| 002361 | unicode/part1/U+33F1 NormalizationTest.txt |
㏱␊18日
|
9 B | |
| 002362 | unicode/part1/U+33F2 NormalizationTest.txt |
㏲␊19日
|
9 B | |
| 002363 | unicode/part1/U+33F3 NormalizationTest.txt |
㏳␊20日
|
9 B | |
| 002364 | unicode/part1/U+33F4 NormalizationTest.txt |
㏴␊21日
|
9 B | |
| 002365 | unicode/part1/U+33F5 NormalizationTest.txt |
㏵␊22日
|
9 B | |
| 002366 | unicode/part1/U+33F6 NormalizationTest.txt |
㏶␊23日
|
9 B | |
| 002367 | unicode/part1/U+33F7 NormalizationTest.txt |
㏷␊24日
|
9 B | |
| 002368 | unicode/part1/U+33F8 NormalizationTest.txt |
㏸␊25日
|
9 B | |
| 002369 | unicode/part1/U+33F9 NormalizationTest.txt |
㏹␊26日
|
9 B | |
| 002370 | unicode/part1/U+33FA NormalizationTest.txt |
㏺␊27日
|
9 B | |
| 002371 | unicode/part1/U+33FB NormalizationTest.txt |
㏻␊28日
|
9 B | |
| 002372 | unicode/part1/U+33FC NormalizationTest.txt |
㏼␊29日
|
9 B | |
| 002373 | unicode/part1/U+33FD NormalizationTest.txt |
㏽␊30日
|
9 B | |
| 002374 | unicode/part1/U+33FE NormalizationTest.txt |
㏾␊31日
|
9 B | |
| 002375 | unicode/part1/U+33FF NormalizationTest.txt |
㏿␊gal
|
7 B | |
| 002376 | unicode/part1/U+A69C NormalizationTest.txt |
ꚜ␊ъ
|
6 B | |
| 002377 | unicode/part1/U+A69D NormalizationTest.txt |
ꚝ␊ь
|
6 B | |
| 002378 | unicode/part1/U+A770 NormalizationTest.txt |
ꝰ␊ꝯ
|
7 B | |
| 002379 | unicode/part1/U+A7F1 NormalizationTest.txt |
␊S
|
5 B | |
| 002380 | unicode/part1/U+A7F2 NormalizationTest.txt |
ꟲ␊C
|
5 B | |
| 002381 | unicode/part1/U+A7F3 NormalizationTest.txt |
ꟳ␊F
|
5 B | |
| 002382 | unicode/part1/U+A7F4 NormalizationTest.txt |
ꟴ␊Q
|
5 B | |
| 002383 | unicode/part1/U+A7F8 NormalizationTest.txt |
ꟸ␊Ħ
|
6 B | |
| 002384 | unicode/part1/U+A7F9 NormalizationTest.txt |
ꟹ␊œ
|
6 B | |
| 002385 | unicode/part1/U+AB5C NormalizationTest.txt |
ꭜ␊ꜧ
|
7 B | |
| 002386 | unicode/part1/U+AB5D NormalizationTest.txt |
ꭝ␊ꬷ
|
7 B | |
| 002387 | unicode/part1/U+AB5E NormalizationTest.txt |
ꭞ␊ɫ
|
6 B | |
| 002388 | unicode/part1/U+AB5F NormalizationTest.txt |
ꭟ␊ꭒ
|
7 B | |
| 002389 | unicode/part1/U+AB69 NormalizationTest.txt |
ꭩ␊ʍ
|
6 B | |
| 002390 | unicode/part1/U+F900 NormalizationTest.txt |
豈␊豈
|
7 B | |
| 002391 | unicode/part1/U+F901 NormalizationTest.txt |
更␊更
|
7 B | |
| 002392 | unicode/part1/U+F902 NormalizationTest.txt |
車␊車
|
7 B | |
| 002393 | unicode/part1/U+F903 NormalizationTest.txt |
賈␊賈
|
7 B | |
| 002394 | unicode/part1/U+F904 NormalizationTest.txt |
滑␊滑
|
7 B | |
| 002395 | unicode/part1/U+F905 NormalizationTest.txt |
串␊串
|
7 B | |
| 002396 | unicode/part1/U+F906 NormalizationTest.txt |
句␊句
|
7 B | |
| 002397 | unicode/part1/U+F907 NormalizationTest.txt |
龜␊龜
|
7 B | |
| 002398 | unicode/part1/U+F908 NormalizationTest.txt |
龜␊龜
|
7 B | |
| 002399 | unicode/part1/U+F909 NormalizationTest.txt |
契␊契
|
7 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