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 |
|---|---|---|---|---|
| 001481 | unicode/part1/U+2C7D NormalizationTest.txt |
ⱽ␊V
|
5 B | |
| 001482 | unicode/part1/U+2D6F NormalizationTest.txt |
ⵯ␊ⵡ
|
7 B | |
| 001483 | unicode/part1/U+2E9F NormalizationTest.txt |
⺟␊母
|
7 B | |
| 001484 | unicode/part1/U+2EF3 NormalizationTest.txt |
⻳␊龟
|
7 B | |
| 001485 | unicode/part1/U+2F00 NormalizationTest.txt |
⼀␊一
|
7 B | |
| 001486 | unicode/part1/U+2F01 NormalizationTest.txt |
⼁␊丨
|
7 B | |
| 001487 | unicode/part1/U+2F02 NormalizationTest.txt |
⼂␊丶
|
7 B | |
| 001488 | unicode/part1/U+2F03 NormalizationTest.txt |
⼃␊丿
|
7 B | |
| 001489 | unicode/part1/U+2F04 NormalizationTest.txt |
⼄␊乙
|
7 B | |
| 001490 | unicode/part1/U+2F05 NormalizationTest.txt |
⼅␊亅
|
7 B | |
| 001491 | unicode/part1/U+2F06 NormalizationTest.txt |
⼆␊二
|
7 B | |
| 001492 | unicode/part1/U+2F07 NormalizationTest.txt |
⼇␊亠
|
7 B | |
| 001493 | unicode/part1/U+2F08 NormalizationTest.txt |
⼈␊人
|
7 B | |
| 001494 | unicode/part1/U+2F09 NormalizationTest.txt |
⼉␊儿
|
7 B | |
| 001495 | unicode/part1/U+2F0A NormalizationTest.txt |
⼊␊入
|
7 B | |
| 001496 | unicode/part1/U+2F0B NormalizationTest.txt |
⼋␊八
|
7 B | |
| 001497 | unicode/part1/U+2F0C NormalizationTest.txt |
⼌␊冂
|
7 B | |
| 001498 | unicode/part1/U+2F0D NormalizationTest.txt |
⼍␊冖
|
7 B | |
| 001499 | unicode/part1/U+2F0E NormalizationTest.txt |
⼎␊冫
|
7 B | |
| 001500 | unicode/part1/U+2F0F NormalizationTest.txt |
⼏␊几
|
7 B | |
| 001501 | unicode/part1/U+2F10 NormalizationTest.txt |
⼐␊凵
|
7 B | |
| 001502 | unicode/part1/U+2F11 NormalizationTest.txt |
⼑␊刀
|
7 B | |
| 001503 | unicode/part1/U+2F12 NormalizationTest.txt |
⼒␊力
|
7 B | |
| 001504 | unicode/part1/U+2F13 NormalizationTest.txt |
⼓␊勹
|
7 B | |
| 001505 | unicode/part1/U+2F14 NormalizationTest.txt |
⼔␊匕
|
7 B | |
| 001506 | unicode/part1/U+2F15 NormalizationTest.txt |
⼕␊匚
|
7 B | |
| 001507 | unicode/part1/U+2F16 NormalizationTest.txt |
⼖␊匸
|
7 B | |
| 001508 | unicode/part1/U+2F17 NormalizationTest.txt |
⼗␊十
|
7 B | |
| 001509 | unicode/part1/U+2F18 NormalizationTest.txt |
⼘␊卜
|
7 B | |
| 001510 | unicode/part1/U+2F19 NormalizationTest.txt |
⼙␊卩
|
7 B | |
| 001511 | unicode/part1/U+2F1A NormalizationTest.txt |
⼚␊厂
|
7 B | |
| 001512 | unicode/part1/U+2F1B NormalizationTest.txt |
⼛␊厶
|
7 B | |
| 001513 | unicode/part1/U+2F1C NormalizationTest.txt |
⼜␊又
|
7 B | |
| 001514 | unicode/part1/U+2F1D NormalizationTest.txt |
⼝␊口
|
7 B | |
| 001515 | unicode/part1/U+2F1E NormalizationTest.txt |
⼞␊囗
|
7 B | |
| 001516 | unicode/part1/U+2F1F NormalizationTest.txt |
⼟␊土
|
7 B | |
| 001517 | unicode/part1/U+2F20 NormalizationTest.txt |
⼠␊士
|
7 B | |
| 001518 | unicode/part1/U+2F21 NormalizationTest.txt |
⼡␊夂
|
7 B | |
| 001519 | unicode/part1/U+2F22 NormalizationTest.txt |
⼢␊夊
|
7 B | |
| 001520 | unicode/part1/U+2F23 NormalizationTest.txt |
⼣␊夕
|
7 B | |
| 001521 | unicode/part1/U+2F24 NormalizationTest.txt |
⼤␊大
|
7 B | |
| 001522 | unicode/part1/U+2F25 NormalizationTest.txt |
⼥␊女
|
7 B | |
| 001523 | unicode/part1/U+2F26 NormalizationTest.txt |
⼦␊子
|
7 B | |
| 001524 | unicode/part1/U+2F27 NormalizationTest.txt |
⼧␊宀
|
7 B | |
| 001525 | unicode/part1/U+2F28 NormalizationTest.txt |
⼨␊寸
|
7 B | |
| 001526 | unicode/part1/U+2F29 NormalizationTest.txt |
⼩␊小
|
7 B | |
| 001527 | unicode/part1/U+2F2A NormalizationTest.txt |
⼪␊尢
|
7 B | |
| 001528 | unicode/part1/U+2F2B NormalizationTest.txt |
⼫␊尸
|
7 B | |
| 001529 | unicode/part1/U+2F2C NormalizationTest.txt |
⼬␊屮
|
7 B | |
| 001530 | unicode/part1/U+2F2D 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