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 |
|---|---|---|---|---|
| 001380 | unicode/part1/U+248C NormalizationTest.txt |
⒌␊5.
|
6 B | |
| 001381 | unicode/part1/U+248D NormalizationTest.txt |
⒍␊6.
|
6 B | |
| 001382 | unicode/part1/U+248E NormalizationTest.txt |
⒎␊7.
|
6 B | |
| 001383 | unicode/part1/U+248F NormalizationTest.txt |
⒏␊8.
|
6 B | |
| 001384 | unicode/part1/U+2490 NormalizationTest.txt |
⒐␊9.
|
6 B | |
| 001385 | unicode/part1/U+2491 NormalizationTest.txt |
⒑␊10.
|
7 B | |
| 001386 | unicode/part1/U+2492 NormalizationTest.txt |
⒒␊11.
|
7 B | |
| 001387 | unicode/part1/U+2493 NormalizationTest.txt |
⒓␊12.
|
7 B | |
| 001388 | unicode/part1/U+2494 NormalizationTest.txt |
⒔␊13.
|
7 B | |
| 001389 | unicode/part1/U+2495 NormalizationTest.txt |
⒕␊14.
|
7 B | |
| 001390 | unicode/part1/U+2496 NormalizationTest.txt |
⒖␊15.
|
7 B | |
| 001391 | unicode/part1/U+2497 NormalizationTest.txt |
⒗␊16.
|
7 B | |
| 001392 | unicode/part1/U+2498 NormalizationTest.txt |
⒘␊17.
|
7 B | |
| 001393 | unicode/part1/U+2499 NormalizationTest.txt |
⒙␊18.
|
7 B | |
| 001394 | unicode/part1/U+249A NormalizationTest.txt |
⒚␊19.
|
7 B | |
| 001395 | unicode/part1/U+249B NormalizationTest.txt |
⒛␊20.
|
7 B | |
| 001396 | unicode/part1/U+249C NormalizationTest.txt |
⒜␊(a)
|
7 B | |
| 001397 | unicode/part1/U+249D NormalizationTest.txt |
⒝␊(b)
|
7 B | |
| 001398 | unicode/part1/U+249E NormalizationTest.txt |
⒞␊(c)
|
7 B | |
| 001399 | unicode/part1/U+249F NormalizationTest.txt |
⒟␊(d)
|
7 B | |
| 001400 | unicode/part1/U+24A0 NormalizationTest.txt |
⒠␊(e)
|
7 B | |
| 001401 | unicode/part1/U+24A1 NormalizationTest.txt |
⒡␊(f)
|
7 B | |
| 001402 | unicode/part1/U+24A2 NormalizationTest.txt |
⒢␊(g)
|
7 B | |
| 001403 | unicode/part1/U+24A3 NormalizationTest.txt |
⒣␊(h)
|
7 B | |
| 001404 | unicode/part1/U+24A4 NormalizationTest.txt |
⒤␊(i)
|
7 B | |
| 001405 | unicode/part1/U+24A5 NormalizationTest.txt |
⒥␊(j)
|
7 B | |
| 001406 | unicode/part1/U+24A6 NormalizationTest.txt |
⒦␊(k)
|
7 B | |
| 001407 | unicode/part1/U+24A7 NormalizationTest.txt |
⒧␊(l)
|
7 B | |
| 001408 | unicode/part1/U+24A8 NormalizationTest.txt |
⒨␊(m)
|
7 B | |
| 001409 | unicode/part1/U+24A9 NormalizationTest.txt |
⒩␊(n)
|
7 B | |
| 001410 | unicode/part1/U+24AA NormalizationTest.txt |
⒪␊(o)
|
7 B | |
| 001411 | unicode/part1/U+24AB NormalizationTest.txt |
⒫␊(p)
|
7 B | |
| 001412 | unicode/part1/U+24AC NormalizationTest.txt |
⒬␊(q)
|
7 B | |
| 001413 | unicode/part1/U+24AD NormalizationTest.txt |
⒭␊(r)
|
7 B | |
| 001414 | unicode/part1/U+24AE NormalizationTest.txt |
⒮␊(s)
|
7 B | |
| 001415 | unicode/part1/U+24AF NormalizationTest.txt |
⒯␊(t)
|
7 B | |
| 001416 | unicode/part1/U+24B0 NormalizationTest.txt |
⒰␊(u)
|
7 B | |
| 001417 | unicode/part1/U+24B1 NormalizationTest.txt |
⒱␊(v)
|
7 B | |
| 001418 | unicode/part1/U+24B2 NormalizationTest.txt |
⒲␊(w)
|
7 B | |
| 001419 | unicode/part1/U+24B3 NormalizationTest.txt |
⒳␊(x)
|
7 B | |
| 001420 | unicode/part1/U+24B4 NormalizationTest.txt |
⒴␊(y)
|
7 B | |
| 001421 | unicode/part1/U+24B5 NormalizationTest.txt |
⒵␊(z)
|
7 B | |
| 001422 | unicode/part1/U+24B6 NormalizationTest.txt |
Ⓐ␊A
|
5 B | |
| 001423 | unicode/part1/U+24B7 NormalizationTest.txt |
Ⓑ␊B
|
5 B | |
| 001424 | unicode/part1/U+24B8 NormalizationTest.txt |
Ⓒ␊C
|
5 B | |
| 001425 | unicode/part1/U+24B9 NormalizationTest.txt |
Ⓓ␊D
|
5 B | |
| 001426 | unicode/part1/U+24BA NormalizationTest.txt |
Ⓔ␊E
|
5 B | |
| 001427 | unicode/part1/U+24BB NormalizationTest.txt |
Ⓕ␊F
|
5 B | |
| 001428 | unicode/part1/U+24BC NormalizationTest.txt |
Ⓖ␊G
|
5 B | |
| 001429 | unicode/part1/U+24BD NormalizationTest.txt |
Ⓗ␊H
|
5 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