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 |
|---|---|---|---|---|
| 001600 | unicode/part1/U+2F73 NormalizationTest.txt |
⽳␊穴
|
7 B | |
| 001601 | unicode/part1/U+2F74 NormalizationTest.txt |
⽴␊立
|
7 B | |
| 001602 | unicode/part1/U+2F75 NormalizationTest.txt |
⽵␊竹
|
7 B | |
| 001603 | unicode/part1/U+2F76 NormalizationTest.txt |
⽶␊米
|
7 B | |
| 001604 | unicode/part1/U+2F77 NormalizationTest.txt |
⽷␊糸
|
7 B | |
| 001605 | unicode/part1/U+2F78 NormalizationTest.txt |
⽸␊缶
|
7 B | |
| 001606 | unicode/part1/U+2F79 NormalizationTest.txt |
⽹␊网
|
7 B | |
| 001607 | unicode/part1/U+2F7A NormalizationTest.txt |
⽺␊羊
|
7 B | |
| 001608 | unicode/part1/U+2F7B NormalizationTest.txt |
⽻␊羽
|
7 B | |
| 001609 | unicode/part1/U+2F7C NormalizationTest.txt |
⽼␊老
|
7 B | |
| 001610 | unicode/part1/U+2F7D NormalizationTest.txt |
⽽␊而
|
7 B | |
| 001611 | unicode/part1/U+2F7E NormalizationTest.txt |
⽾␊耒
|
7 B | |
| 001612 | unicode/part1/U+2F7F NormalizationTest.txt |
⽿␊耳
|
7 B | |
| 001613 | unicode/part1/U+2F80 NormalizationTest.txt |
⾀␊聿
|
7 B | |
| 001614 | unicode/part1/U+2F81 NormalizationTest.txt |
⾁␊肉
|
7 B | |
| 001615 | unicode/part1/U+2F82 NormalizationTest.txt |
⾂␊臣
|
7 B | |
| 001616 | unicode/part1/U+2F83 NormalizationTest.txt |
⾃␊自
|
7 B | |
| 001617 | unicode/part1/U+2F84 NormalizationTest.txt |
⾄␊至
|
7 B | |
| 001618 | unicode/part1/U+2F85 NormalizationTest.txt |
⾅␊臼
|
7 B | |
| 001619 | unicode/part1/U+2F86 NormalizationTest.txt |
⾆␊舌
|
7 B | |
| 001620 | unicode/part1/U+2F87 NormalizationTest.txt |
⾇␊舛
|
7 B | |
| 001621 | unicode/part1/U+2F88 NormalizationTest.txt |
⾈␊舟
|
7 B | |
| 001622 | unicode/part1/U+2F89 NormalizationTest.txt |
⾉␊艮
|
7 B | |
| 001623 | unicode/part1/U+2F8A NormalizationTest.txt |
⾊␊色
|
7 B | |
| 001624 | unicode/part1/U+2F8B NormalizationTest.txt |
⾋␊艸
|
7 B | |
| 001625 | unicode/part1/U+2F8C NormalizationTest.txt |
⾌␊虍
|
7 B | |
| 001626 | unicode/part1/U+2F8D NormalizationTest.txt |
⾍␊虫
|
7 B | |
| 001627 | unicode/part1/U+2F8E NormalizationTest.txt |
⾎␊血
|
7 B | |
| 001628 | unicode/part1/U+2F8F NormalizationTest.txt |
⾏␊行
|
7 B | |
| 001629 | unicode/part1/U+2F90 NormalizationTest.txt |
⾐␊衣
|
7 B | |
| 001630 | unicode/part1/U+2F91 NormalizationTest.txt |
⾑␊襾
|
7 B | |
| 001631 | unicode/part1/U+2F92 NormalizationTest.txt |
⾒␊見
|
7 B | |
| 001632 | unicode/part1/U+2F93 NormalizationTest.txt |
⾓␊角
|
7 B | |
| 001633 | unicode/part1/U+2F94 NormalizationTest.txt |
⾔␊言
|
7 B | |
| 001634 | unicode/part1/U+2F95 NormalizationTest.txt |
⾕␊谷
|
7 B | |
| 001635 | unicode/part1/U+2F96 NormalizationTest.txt |
⾖␊豆
|
7 B | |
| 001636 | unicode/part1/U+2F97 NormalizationTest.txt |
⾗␊豕
|
7 B | |
| 001637 | unicode/part1/U+2F98 NormalizationTest.txt |
⾘␊豸
|
7 B | |
| 001638 | unicode/part1/U+2F99 NormalizationTest.txt |
⾙␊貝
|
7 B | |
| 001639 | unicode/part1/U+2F9A NormalizationTest.txt |
⾚␊赤
|
7 B | |
| 001640 | unicode/part1/U+2F9B NormalizationTest.txt |
⾛␊走
|
7 B | |
| 001641 | unicode/part1/U+2F9C NormalizationTest.txt |
⾜␊足
|
7 B | |
| 001642 | unicode/part1/U+2F9D NormalizationTest.txt |
⾝␊身
|
7 B | |
| 001643 | unicode/part1/U+2F9E NormalizationTest.txt |
⾞␊車
|
7 B | |
| 001644 | unicode/part1/U+2F9F NormalizationTest.txt |
⾟␊辛
|
7 B | |
| 001645 | unicode/part1/U+2FA0 NormalizationTest.txt |
⾠␊辰
|
7 B | |
| 001646 | unicode/part1/U+2FA1 NormalizationTest.txt |
⾡␊辵
|
7 B | |
| 001647 | unicode/part1/U+2FA2 NormalizationTest.txt |
⾢␊邑
|
7 B | |
| 001648 | unicode/part1/U+2FA3 NormalizationTest.txt |
⾣␊酉
|
7 B | |
| 001649 | unicode/part1/U+2FA4 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