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 |
|---|---|---|---|---|
| 001284 | unicode/part1/U+217F NormalizationTest.txt |
ⅿ␊m
|
5 B | |
| 001285 | unicode/part1/U+2189 NormalizationTest.txt |
↉␊0⁄3
|
9 B | |
| 001297 | unicode/part1/U+222C NormalizationTest.txt |
∬␊∫∫
|
10 B | |
| 001298 | unicode/part1/U+222D NormalizationTest.txt |
∭␊∫∫∫
|
13 B | |
| 001299 | unicode/part1/U+222F NormalizationTest.txt |
∯␊∮∮
|
10 B | |
| 001300 | unicode/part1/U+2230 NormalizationTest.txt |
∰␊∮∮∮
|
13 B | |
| 001336 | unicode/part1/U+2460 NormalizationTest.txt |
①␊1
|
5 B | |
| 001337 | unicode/part1/U+2461 NormalizationTest.txt |
②␊2
|
5 B | |
| 001338 | unicode/part1/U+2462 NormalizationTest.txt |
③␊3
|
5 B | |
| 001339 | unicode/part1/U+2463 NormalizationTest.txt |
④␊4
|
5 B | |
| 001340 | unicode/part1/U+2464 NormalizationTest.txt |
⑤␊5
|
5 B | |
| 001341 | unicode/part1/U+2465 NormalizationTest.txt |
⑥␊6
|
5 B | |
| 001342 | unicode/part1/U+2466 NormalizationTest.txt |
⑦␊7
|
5 B | |
| 001343 | unicode/part1/U+2467 NormalizationTest.txt |
⑧␊8
|
5 B | |
| 001344 | unicode/part1/U+2468 NormalizationTest.txt |
⑨␊9
|
5 B | |
| 001345 | unicode/part1/U+2469 NormalizationTest.txt |
⑩␊10
|
6 B | |
| 001346 | unicode/part1/U+246A NormalizationTest.txt |
⑪␊11
|
6 B | |
| 001347 | unicode/part1/U+246B NormalizationTest.txt |
⑫␊12
|
6 B | |
| 001348 | unicode/part1/U+246C NormalizationTest.txt |
⑬␊13
|
6 B | |
| 001349 | unicode/part1/U+246D NormalizationTest.txt |
⑭␊14
|
6 B | |
| 001350 | unicode/part1/U+246E NormalizationTest.txt |
⑮␊15
|
6 B | |
| 001351 | unicode/part1/U+246F NormalizationTest.txt |
⑯␊16
|
6 B | |
| 001352 | unicode/part1/U+2470 NormalizationTest.txt |
⑰␊17
|
6 B | |
| 001353 | unicode/part1/U+2471 NormalizationTest.txt |
⑱␊18
|
6 B | |
| 001354 | unicode/part1/U+2472 NormalizationTest.txt |
⑲␊19
|
6 B | |
| 001355 | unicode/part1/U+2473 NormalizationTest.txt |
⑳␊20
|
6 B | |
| 001356 | unicode/part1/U+2474 NormalizationTest.txt |
⑴␊(1)
|
7 B | |
| 001357 | unicode/part1/U+2475 NormalizationTest.txt |
⑵␊(2)
|
7 B | |
| 001358 | unicode/part1/U+2476 NormalizationTest.txt |
⑶␊(3)
|
7 B | |
| 001359 | unicode/part1/U+2477 NormalizationTest.txt |
⑷␊(4)
|
7 B | |
| 001360 | unicode/part1/U+2478 NormalizationTest.txt |
⑸␊(5)
|
7 B | |
| 001361 | unicode/part1/U+2479 NormalizationTest.txt |
⑹␊(6)
|
7 B | |
| 001362 | unicode/part1/U+247A NormalizationTest.txt |
⑺␊(7)
|
7 B | |
| 001363 | unicode/part1/U+247B NormalizationTest.txt |
⑻␊(8)
|
7 B | |
| 001364 | unicode/part1/U+247C NormalizationTest.txt |
⑼␊(9)
|
7 B | |
| 001365 | unicode/part1/U+247D NormalizationTest.txt |
⑽␊(10)
|
8 B | |
| 001366 | unicode/part1/U+247E NormalizationTest.txt |
⑾␊(11)
|
8 B | |
| 001367 | unicode/part1/U+247F NormalizationTest.txt |
⑿␊(12)
|
8 B | |
| 001368 | unicode/part1/U+2480 NormalizationTest.txt |
⒀␊(13)
|
8 B | |
| 001369 | unicode/part1/U+2481 NormalizationTest.txt |
⒁␊(14)
|
8 B | |
| 001370 | unicode/part1/U+2482 NormalizationTest.txt |
⒂␊(15)
|
8 B | |
| 001371 | unicode/part1/U+2483 NormalizationTest.txt |
⒃␊(16)
|
8 B | |
| 001372 | unicode/part1/U+2484 NormalizationTest.txt |
⒄␊(17)
|
8 B | |
| 001373 | unicode/part1/U+2485 NormalizationTest.txt |
⒅␊(18)
|
8 B | |
| 001374 | unicode/part1/U+2486 NormalizationTest.txt |
⒆␊(19)
|
8 B | |
| 001375 | unicode/part1/U+2487 NormalizationTest.txt |
⒇␊(20)
|
8 B | |
| 001376 | unicode/part1/U+2488 NormalizationTest.txt |
⒈␊1.
|
6 B | |
| 001377 | unicode/part1/U+2489 NormalizationTest.txt |
⒉␊2.
|
6 B | |
| 001378 | unicode/part1/U+248A NormalizationTest.txt |
⒊␊3.
|
6 B | |
| 001379 | unicode/part1/U+248B NormalizationTest.txt |
⒋␊4.
|
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