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 |
|---|---|---|---|---|
| 002100 | unicode/part1/U+32EC NormalizationTest.txt |
㋬␊ヘ
|
7 B | |
| 002101 | unicode/part1/U+32ED NormalizationTest.txt |
㋭␊ホ
|
7 B | |
| 002102 | unicode/part1/U+32EE NormalizationTest.txt |
㋮␊マ
|
7 B | |
| 002103 | unicode/part1/U+32EF NormalizationTest.txt |
㋯␊ミ
|
7 B | |
| 002104 | unicode/part1/U+32F0 NormalizationTest.txt |
㋰␊ム
|
7 B | |
| 002105 | unicode/part1/U+32F1 NormalizationTest.txt |
㋱␊メ
|
7 B | |
| 002106 | unicode/part1/U+32F2 NormalizationTest.txt |
㋲␊モ
|
7 B | |
| 002107 | unicode/part1/U+32F3 NormalizationTest.txt |
㋳␊ヤ
|
7 B | |
| 002108 | unicode/part1/U+32F4 NormalizationTest.txt |
㋴␊ユ
|
7 B | |
| 002109 | unicode/part1/U+32F5 NormalizationTest.txt |
㋵␊ヨ
|
7 B | |
| 002110 | unicode/part1/U+32F6 NormalizationTest.txt |
㋶␊ラ
|
7 B | |
| 002111 | unicode/part1/U+32F7 NormalizationTest.txt |
㋷␊リ
|
7 B | |
| 002112 | unicode/part1/U+32F8 NormalizationTest.txt |
㋸␊ル
|
7 B | |
| 002113 | unicode/part1/U+32F9 NormalizationTest.txt |
㋹␊レ
|
7 B | |
| 002114 | unicode/part1/U+32FA NormalizationTest.txt |
㋺␊ロ
|
7 B | |
| 002115 | unicode/part1/U+32FB NormalizationTest.txt |
㋻␊ワ
|
7 B | |
| 002116 | unicode/part1/U+32FC NormalizationTest.txt |
㋼␊ヰ
|
7 B | |
| 002117 | unicode/part1/U+32FD NormalizationTest.txt |
㋽␊ヱ
|
7 B | |
| 002118 | unicode/part1/U+32FE NormalizationTest.txt |
㋾␊ヲ
|
7 B | |
| 002119 | unicode/part1/U+32FF NormalizationTest.txt |
㋿␊令和
|
10 B | |
| 002120 | unicode/part1/U+3300 NormalizationTest.txt |
㌀␊アパート␊アパート
|
32 B | |
| 002121 | unicode/part1/U+3301 NormalizationTest.txt |
㌁␊アルファ
|
16 B | |
| 002122 | unicode/part1/U+3302 NormalizationTest.txt |
㌂␊アンペア␊アンペア
|
32 B | |
| 002123 | unicode/part1/U+3303 NormalizationTest.txt |
㌃␊アール
|
13 B | |
| 002124 | unicode/part1/U+3304 NormalizationTest.txt |
㌄␊イニング␊イニング
|
32 B | |
| 002125 | unicode/part1/U+3305 NormalizationTest.txt |
㌅␊インチ
|
13 B | |
| 002126 | unicode/part1/U+3306 NormalizationTest.txt |
㌆␊ウォン
|
13 B | |
| 002127 | unicode/part1/U+3307 NormalizationTest.txt |
㌇␊エスクード␊エスクード
|
38 B | |
| 002128 | unicode/part1/U+3308 NormalizationTest.txt |
㌈␊エーカー
|
16 B | |
| 002129 | unicode/part1/U+3309 NormalizationTest.txt |
㌉␊オンス
|
13 B | |
| 002130 | unicode/part1/U+330A NormalizationTest.txt |
㌊␊オーム
|
13 B | |
| 002131 | unicode/part1/U+330B NormalizationTest.txt |
㌋␊カイリ
|
13 B | |
| 002132 | unicode/part1/U+330C NormalizationTest.txt |
㌌␊カラット
|
16 B | |
| 002133 | unicode/part1/U+330D NormalizationTest.txt |
㌍␊カロリー
|
16 B | |
| 002134 | unicode/part1/U+330E NormalizationTest.txt |
㌎␊ガロン␊ガロン
|
26 B | |
| 002135 | unicode/part1/U+330F NormalizationTest.txt |
㌏␊ガンマ␊ガンマ
|
26 B | |
| 002136 | unicode/part1/U+3310 NormalizationTest.txt |
㌐␊ギガ␊ギガ
|
23 B | |
| 002137 | unicode/part1/U+3311 NormalizationTest.txt |
㌑␊ギニー␊ギニー
|
26 B | |
| 002138 | unicode/part1/U+3312 NormalizationTest.txt |
㌒␊キュリー
|
16 B | |
| 002139 | unicode/part1/U+3313 NormalizationTest.txt |
㌓␊ギルダー␊ギルダー
|
35 B | |
| 002140 | unicode/part1/U+3314 NormalizationTest.txt |
㌔␊キロ
|
10 B | |
| 002141 | unicode/part1/U+3315 NormalizationTest.txt |
㌕␊キログラム␊キログラム
|
38 B | |
| 002142 | unicode/part1/U+3316 NormalizationTest.txt |
㌖␊キロメートル
|
22 B | |
| 002143 | unicode/part1/U+3317 NormalizationTest.txt |
㌗␊キロワット
|
19 B | |
| 002144 | unicode/part1/U+3318 NormalizationTest.txt |
㌘␊グラム␊グラム
|
26 B | |
| 002145 | unicode/part1/U+3319 NormalizationTest.txt |
㌙␊グラムトン␊グラムトン
|
38 B | |
| 002146 | unicode/part1/U+331A NormalizationTest.txt |
㌚␊クルゼイロ␊クルゼイロ
|
38 B | |
| 002147 | unicode/part1/U+331B NormalizationTest.txt |
㌛␊クローネ
|
16 B | |
| 002148 | unicode/part1/U+331C NormalizationTest.txt |
㌜␊ケース
|
13 B | |
| 002149 | unicode/part1/U+331D NormalizationTest.txt |
㌝␊コルナ
|
13 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