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 |
|---|---|---|---|---|
| 001531 | unicode/part1/U+2F2E NormalizationTest.txt |
⼮␊巛
|
7 B | |
| 001532 | unicode/part1/U+2F2F NormalizationTest.txt |
⼯␊工
|
7 B | |
| 001533 | unicode/part1/U+2F30 NormalizationTest.txt |
⼰␊己
|
7 B | |
| 001534 | unicode/part1/U+2F31 NormalizationTest.txt |
⼱␊巾
|
7 B | |
| 001535 | unicode/part1/U+2F32 NormalizationTest.txt |
⼲␊干
|
7 B | |
| 001536 | unicode/part1/U+2F33 NormalizationTest.txt |
⼳␊幺
|
7 B | |
| 001537 | unicode/part1/U+2F34 NormalizationTest.txt |
⼴␊广
|
7 B | |
| 001538 | unicode/part1/U+2F35 NormalizationTest.txt |
⼵␊廴
|
7 B | |
| 001539 | unicode/part1/U+2F36 NormalizationTest.txt |
⼶␊廾
|
7 B | |
| 001540 | unicode/part1/U+2F37 NormalizationTest.txt |
⼷␊弋
|
7 B | |
| 001541 | unicode/part1/U+2F38 NormalizationTest.txt |
⼸␊弓
|
7 B | |
| 001542 | unicode/part1/U+2F39 NormalizationTest.txt |
⼹␊彐
|
7 B | |
| 001543 | unicode/part1/U+2F3A NormalizationTest.txt |
⼺␊彡
|
7 B | |
| 001544 | unicode/part1/U+2F3B NormalizationTest.txt |
⼻␊彳
|
7 B | |
| 001545 | unicode/part1/U+2F3C NormalizationTest.txt |
⼼␊心
|
7 B | |
| 001546 | unicode/part1/U+2F3D NormalizationTest.txt |
⼽␊戈
|
7 B | |
| 001547 | unicode/part1/U+2F3E NormalizationTest.txt |
⼾␊戶
|
7 B | |
| 001548 | unicode/part1/U+2F3F NormalizationTest.txt |
⼿␊手
|
7 B | |
| 001549 | unicode/part1/U+2F40 NormalizationTest.txt |
⽀␊支
|
7 B | |
| 001550 | unicode/part1/U+2F41 NormalizationTest.txt |
⽁␊攴
|
7 B | |
| 001551 | unicode/part1/U+2F42 NormalizationTest.txt |
⽂␊文
|
7 B | |
| 001552 | unicode/part1/U+2F43 NormalizationTest.txt |
⽃␊斗
|
7 B | |
| 001553 | unicode/part1/U+2F44 NormalizationTest.txt |
⽄␊斤
|
7 B | |
| 001554 | unicode/part1/U+2F45 NormalizationTest.txt |
⽅␊方
|
7 B | |
| 001555 | unicode/part1/U+2F46 NormalizationTest.txt |
⽆␊无
|
7 B | |
| 001556 | unicode/part1/U+2F47 NormalizationTest.txt |
⽇␊日
|
7 B | |
| 001557 | unicode/part1/U+2F48 NormalizationTest.txt |
⽈␊曰
|
7 B | |
| 001558 | unicode/part1/U+2F49 NormalizationTest.txt |
⽉␊月
|
7 B | |
| 001559 | unicode/part1/U+2F4A NormalizationTest.txt |
⽊␊木
|
7 B | |
| 001560 | unicode/part1/U+2F4B NormalizationTest.txt |
⽋␊欠
|
7 B | |
| 001561 | unicode/part1/U+2F4C NormalizationTest.txt |
⽌␊止
|
7 B | |
| 001562 | unicode/part1/U+2F4D NormalizationTest.txt |
⽍␊歹
|
7 B | |
| 001563 | unicode/part1/U+2F4E NormalizationTest.txt |
⽎␊殳
|
7 B | |
| 001564 | unicode/part1/U+2F4F NormalizationTest.txt |
⽏␊毋
|
7 B | |
| 001565 | unicode/part1/U+2F50 NormalizationTest.txt |
⽐␊比
|
7 B | |
| 001566 | unicode/part1/U+2F51 NormalizationTest.txt |
⽑␊毛
|
7 B | |
| 001567 | unicode/part1/U+2F52 NormalizationTest.txt |
⽒␊氏
|
7 B | |
| 001568 | unicode/part1/U+2F53 NormalizationTest.txt |
⽓␊气
|
7 B | |
| 001569 | unicode/part1/U+2F54 NormalizationTest.txt |
⽔␊水
|
7 B | |
| 001570 | unicode/part1/U+2F55 NormalizationTest.txt |
⽕␊火
|
7 B | |
| 001571 | unicode/part1/U+2F56 NormalizationTest.txt |
⽖␊爪
|
7 B | |
| 001572 | unicode/part1/U+2F57 NormalizationTest.txt |
⽗␊父
|
7 B | |
| 001573 | unicode/part1/U+2F58 NormalizationTest.txt |
⽘␊爻
|
7 B | |
| 001574 | unicode/part1/U+2F59 NormalizationTest.txt |
⽙␊爿
|
7 B | |
| 001575 | unicode/part1/U+2F5A NormalizationTest.txt |
⽚␊片
|
7 B | |
| 001576 | unicode/part1/U+2F5B NormalizationTest.txt |
⽛␊牙
|
7 B | |
| 001577 | unicode/part1/U+2F5C NormalizationTest.txt |
⽜␊牛
|
7 B | |
| 001578 | unicode/part1/U+2F5D NormalizationTest.txt |
⽝␊犬
|
7 B | |
| 001579 | unicode/part1/U+2F5E NormalizationTest.txt |
⽞␊玄
|
7 B | |
| 001580 | unicode/part1/U+2F5F 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