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 |
|---|---|---|---|---|
| 002189 | unicode/part1/U+3345 NormalizationTest.txt |
㍅␊マッハ
|
13 B | |
| 002190 | unicode/part1/U+3346 NormalizationTest.txt |
㍆␊マルク
|
13 B | |
| 002191 | unicode/part1/U+3347 NormalizationTest.txt |
㍇␊マンション
|
19 B | |
| 002192 | unicode/part1/U+3348 NormalizationTest.txt |
㍈␊ミクロン
|
16 B | |
| 002193 | unicode/part1/U+3349 NormalizationTest.txt |
㍉␊ミリ
|
10 B | |
| 002194 | unicode/part1/U+334A NormalizationTest.txt |
㍊␊ミリバール␊ミリバール
|
38 B | |
| 002195 | unicode/part1/U+334B NormalizationTest.txt |
㍋␊メガ␊メガ
|
20 B | |
| 002196 | unicode/part1/U+334C NormalizationTest.txt |
㍌␊メガトン␊メガトン
|
32 B | |
| 002197 | unicode/part1/U+334D NormalizationTest.txt |
㍍␊メートル
|
16 B | |
| 002198 | unicode/part1/U+334E NormalizationTest.txt |
㍎␊ヤード␊ヤード
|
26 B | |
| 002199 | unicode/part1/U+334F NormalizationTest.txt |
㍏␊ヤール
|
13 B | |
| 002200 | unicode/part1/U+3350 NormalizationTest.txt |
㍐␊ユアン
|
13 B | |
| 002201 | unicode/part1/U+3351 NormalizationTest.txt |
㍑␊リットル
|
16 B | |
| 002202 | unicode/part1/U+3352 NormalizationTest.txt |
㍒␊リラ
|
10 B | |
| 002203 | unicode/part1/U+3353 NormalizationTest.txt |
㍓␊ルピー␊ルピー
|
26 B | |
| 002204 | unicode/part1/U+3354 NormalizationTest.txt |
㍔␊ルーブル␊ルーブル
|
32 B | |
| 002205 | unicode/part1/U+3355 NormalizationTest.txt |
㍕␊レム
|
10 B | |
| 002206 | unicode/part1/U+3356 NormalizationTest.txt |
㍖␊レントゲン␊レントゲン
|
38 B | |
| 002207 | unicode/part1/U+3357 NormalizationTest.txt |
㍗␊ワット
|
13 B | |
| 002208 | unicode/part1/U+3358 NormalizationTest.txt |
㍘␊0点
|
8 B | |
| 002209 | unicode/part1/U+3359 NormalizationTest.txt |
㍙␊1点
|
8 B | |
| 002210 | unicode/part1/U+335A NormalizationTest.txt |
㍚␊2点
|
8 B | |
| 002211 | unicode/part1/U+335B NormalizationTest.txt |
㍛␊3点
|
8 B | |
| 002212 | unicode/part1/U+335C NormalizationTest.txt |
㍜␊4点
|
8 B | |
| 002213 | unicode/part1/U+335D NormalizationTest.txt |
㍝␊5点
|
8 B | |
| 002214 | unicode/part1/U+335E NormalizationTest.txt |
㍞␊6点
|
8 B | |
| 002215 | unicode/part1/U+335F NormalizationTest.txt |
㍟␊7点
|
8 B | |
| 002216 | unicode/part1/U+3360 NormalizationTest.txt |
㍠␊8点
|
8 B | |
| 002217 | unicode/part1/U+3361 NormalizationTest.txt |
㍡␊9点
|
8 B | |
| 002218 | unicode/part1/U+3362 NormalizationTest.txt |
㍢␊10点
|
9 B | |
| 002219 | unicode/part1/U+3363 NormalizationTest.txt |
㍣␊11点
|
9 B | |
| 002220 | unicode/part1/U+3364 NormalizationTest.txt |
㍤␊12点
|
9 B | |
| 002221 | unicode/part1/U+3365 NormalizationTest.txt |
㍥␊13点
|
9 B | |
| 002222 | unicode/part1/U+3366 NormalizationTest.txt |
㍦␊14点
|
9 B | |
| 002223 | unicode/part1/U+3367 NormalizationTest.txt |
㍧␊15点
|
9 B | |
| 002224 | unicode/part1/U+3368 NormalizationTest.txt |
㍨␊16点
|
9 B | |
| 002225 | unicode/part1/U+3369 NormalizationTest.txt |
㍩␊17点
|
9 B | |
| 002226 | unicode/part1/U+336A NormalizationTest.txt |
㍪␊18点
|
9 B | |
| 002227 | unicode/part1/U+336B NormalizationTest.txt |
㍫␊19点
|
9 B | |
| 002228 | unicode/part1/U+336C NormalizationTest.txt |
㍬␊20点
|
9 B | |
| 002229 | unicode/part1/U+336D NormalizationTest.txt |
㍭␊21点
|
9 B | |
| 002230 | unicode/part1/U+336E NormalizationTest.txt |
㍮␊22点
|
9 B | |
| 002231 | unicode/part1/U+336F NormalizationTest.txt |
㍯␊23点
|
9 B | |
| 002232 | unicode/part1/U+3370 NormalizationTest.txt |
㍰␊24点
|
9 B | |
| 002233 | unicode/part1/U+3371 NormalizationTest.txt |
㍱␊hPa
|
7 B | |
| 002234 | unicode/part1/U+3372 NormalizationTest.txt |
㍲␊da
|
6 B | |
| 002235 | unicode/part1/U+3373 NormalizationTest.txt |
㍳␊AU
|
6 B | |
| 002236 | unicode/part1/U+3374 NormalizationTest.txt |
㍴␊bar
|
7 B | |
| 002237 | unicode/part1/U+3375 NormalizationTest.txt |
㍵␊oV
|
6 B | |
| 002238 | unicode/part1/U+3376 NormalizationTest.txt |
㍶␊pc
|
6 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