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 |
|---|---|---|---|---|
| 006300 | unicode/part2/line 17528 NormalizationTest.txt |
à֮ؖ̕b␊à֮ؖ̕b␊à֮ؖ̕b
|
31 B | |
| 006301 | unicode/part2/line 17529 NormalizationTest.txt |
a֮ؖ̀̕b␊a֮ؖ̀̕b
|
21 B | |
| 006302 | unicode/part2/line 17530 NormalizationTest.txt |
à֮ؗ̕b␊à֮ؗ̕b␊à֮ؗ̕b
|
31 B | |
| 006303 | unicode/part2/line 17531 NormalizationTest.txt |
a֮ؗ̀̕b␊a֮ؗ̀̕b
|
21 B | |
| 006304 | unicode/part2/line 17532 NormalizationTest.txt |
aٍؘؘؙb␊aٍؘؘؙb
|
21 B | |
| 006305 | unicode/part2/line 17533 NormalizationTest.txt |
aٍؘؘؙb␊aٍؘؘؙb
|
21 B | |
| 006306 | unicode/part2/line 17534 NormalizationTest.txt |
aؘؙؙؚb␊aؘؙؙؚb
|
21 B | |
| 006307 | unicode/part2/line 17535 NormalizationTest.txt |
aؘؙؙؚb␊aؘؙؙؚb
|
21 B | |
| 006308 | unicode/part2/line 17536 NormalizationTest.txt |
aؙؚؚّb␊aؙؚؚّb
|
21 B | |
| 006309 | unicode/part2/line 17537 NormalizationTest.txt |
aؙؚؚّb␊aؙؚؚّb
|
21 B | |
| 006310 | unicode/part2/line 17538 NormalizationTest.txt |
aﬞًًٌb␊aﬞًًٌb
|
23 B | |
| 006311 | unicode/part2/line 17539 NormalizationTest.txt |
aﬞًًٌb␊aﬞًًٌb
|
23 B | |
| 006312 | unicode/part2/line 17540 NormalizationTest.txt |
aًٌٌٍb␊aًٌٌٍb
|
21 B | |
| 006313 | unicode/part2/line 17541 NormalizationTest.txt |
aًٌٌٍb␊aًٌٌٍb
|
21 B | |
| 006314 | unicode/part2/line 17542 NormalizationTest.txt |
aٌٍٍؘb␊aٌٍٍؘb
|
21 B | |
| 006315 | unicode/part2/line 17543 NormalizationTest.txt |
aٌٍٍؘb␊aٌٍٍؘb
|
21 B | |
| 006316 | unicode/part2/line 17544 NormalizationTest.txt |
aٍؘَؙb␊aٍؘَؙb
|
21 B | |
| 006317 | unicode/part2/line 17545 NormalizationTest.txt |
aٍَؘؙb␊aٍَؘؙb
|
21 B | |
| 006318 | unicode/part2/line 17546 NormalizationTest.txt |
aؘؙُؚb␊aؘؙُؚb
|
21 B | |
| 006319 | unicode/part2/line 17547 NormalizationTest.txt |
aؘُؙؚb␊aؘُؙؚb
|
21 B | |
| 006320 | unicode/part2/line 17548 NormalizationTest.txt |
aؙؚِّb␊aؙؚِّb
|
21 B | |
| 006321 | unicode/part2/line 17549 NormalizationTest.txt |
aؙِؚّb␊aؙِؚّb
|
21 B | |
| 006322 | unicode/part2/line 17550 NormalizationTest.txt |
aؚّّْb␊aؚّّْb
|
21 B | |
| 006323 | unicode/part2/line 17551 NormalizationTest.txt |
aؚّّْb␊aؚّّْb
|
21 B | |
| 006324 | unicode/part2/line 17552 NormalizationTest.txt |
aّْْٰb␊aّْْٰb
|
21 B | |
| 006325 | unicode/part2/line 17553 NormalizationTest.txt |
aّْْٰb␊aّْْٰb
|
21 B | |
| 006326 | unicode/part2/line 17554 NormalizationTest.txt |
à֮ٓ̕b␊à֮ٓ̕b␊à֮ٓ̕b
|
31 B | |
| 006327 | unicode/part2/line 17555 NormalizationTest.txt |
a֮ٓ̀̕b␊a֮ٓ̀̕b
|
21 B | |
| 006328 | unicode/part2/line 17556 NormalizationTest.txt |
à֮ٔ̕b␊à֮ٔ̕b␊à֮ٔ̕b
|
31 B | |
| 006329 | unicode/part2/line 17557 NormalizationTest.txt |
a֮ٔ̀̕b␊a֮ٔ̀̕b
|
21 B | |
| 006330 | unicode/part2/line 17558 NormalizationTest.txt |
a᷺̖ٕ֚b␊a᷺̖ٕ֚b
|
23 B | |
| 006331 | unicode/part2/line 17559 NormalizationTest.txt |
a᷺ٕ̖֚b␊a᷺ٕ̖֚b
|
23 B | |
| 006332 | unicode/part2/line 17560 NormalizationTest.txt |
a᷺̖ٖ֚b␊a᷺̖ٖ֚b
|
23 B | |
| 006333 | unicode/part2/line 17561 NormalizationTest.txt |
a᷺ٖ̖֚b␊a᷺ٖ̖֚b
|
23 B | |
| 006334 | unicode/part2/line 17562 NormalizationTest.txt |
à֮ٗ̕b␊à֮ٗ̕b␊à֮ٗ̕b
|
31 B | |
| 006335 | unicode/part2/line 17563 NormalizationTest.txt |
a֮ٗ̀̕b␊a֮ٗ̀̕b
|
21 B | |
| 006336 | unicode/part2/line 17564 NormalizationTest.txt |
à֮٘̕b␊à֮٘̕b␊à֮٘̕b
|
31 B | |
| 006337 | unicode/part2/line 17565 NormalizationTest.txt |
a֮٘̀̕b␊a֮٘̀̕b
|
21 B | |
| 006338 | unicode/part2/line 17566 NormalizationTest.txt |
à֮ٙ̕b␊à֮ٙ̕b␊à֮ٙ̕b
|
31 B | |
| 006339 | unicode/part2/line 17567 NormalizationTest.txt |
a֮ٙ̀̕b␊a֮ٙ̀̕b
|
21 B | |
| 006340 | unicode/part2/line 17568 NormalizationTest.txt |
à֮ٚ̕b␊à֮ٚ̕b␊à֮ٚ̕b
|
31 B | |
| 006341 | unicode/part2/line 17569 NormalizationTest.txt |
a֮ٚ̀̕b␊a֮ٚ̀̕b
|
21 B | |
| 006342 | unicode/part2/line 17570 NormalizationTest.txt |
à֮ٛ̕b␊à֮ٛ̕b␊à֮ٛ̕b
|
31 B | |
| 006343 | unicode/part2/line 17571 NormalizationTest.txt |
a֮ٛ̀̕b␊a֮ٛ̀̕b
|
21 B | |
| 006344 | unicode/part2/line 17572 NormalizationTest.txt |
a᷺̖ٜ֚b␊a᷺̖ٜ֚b
|
23 B | |
| 006345 | unicode/part2/line 17573 NormalizationTest.txt |
a᷺ٜ̖֚b␊a᷺ٜ̖֚b
|
23 B | |
| 006346 | unicode/part2/line 17574 NormalizationTest.txt |
à֮ٝ̕b␊à֮ٝ̕b␊à֮ٝ̕b
|
31 B | |
| 006347 | unicode/part2/line 17575 NormalizationTest.txt |
a֮ٝ̀̕b␊a֮ٝ̀̕b
|
21 B | |
| 006348 | unicode/part2/line 17576 NormalizationTest.txt |
à֮ٞ̕b␊à֮ٞ̕b␊à֮ٞ̕b
|
31 B | |
| 006349 | unicode/part2/line 17577 NormalizationTest.txt |
a֮ٞ̀̕b␊a֮ٞ̀̕b
|
21 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