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 |
|---|---|---|---|---|
| 000500 | unicode/part1/U+0EB3 NormalizationTest.txt |
ຳ␊ໍາ
|
10 B | |
| 000501 | unicode/part1/U+0EDC NormalizationTest.txt |
ໜ␊ຫນ
|
10 B | |
| 000502 | unicode/part1/U+0EDD NormalizationTest.txt |
ໝ␊ຫມ
|
10 B | |
| 000503 | unicode/part1/U+0F0C NormalizationTest.txt |
༌␊་
|
7 B | |
| 000504 | unicode/part1/U+0F43 NormalizationTest.txt |
གྷ␊གྷ
|
10 B | |
| 000505 | unicode/part1/U+0F4D NormalizationTest.txt |
ཌྷ␊ཌྷ
|
10 B | |
| 000506 | unicode/part1/U+0F52 NormalizationTest.txt |
དྷ␊དྷ
|
10 B | |
| 000507 | unicode/part1/U+0F57 NormalizationTest.txt |
བྷ␊བྷ
|
10 B | |
| 000508 | unicode/part1/U+0F5C NormalizationTest.txt |
ཛྷ␊ཛྷ
|
10 B | |
| 000509 | unicode/part1/U+0F69 NormalizationTest.txt |
ཀྵ␊ཀྵ
|
10 B | |
| 000510 | unicode/part1/U+0F73 NormalizationTest.txt |
ཱི␊ཱི
|
10 B | |
| 000511 | unicode/part1/U+0F75 NormalizationTest.txt |
ཱུ␊ཱུ
|
10 B | |
| 000512 | unicode/part1/U+0F76 NormalizationTest.txt |
ྲྀ␊ྲྀ
|
10 B | |
| 000513 | unicode/part1/U+0F77 NormalizationTest.txt |
ཷ␊ྲཱྀ
|
13 B | |
| 000514 | unicode/part1/U+0F78 NormalizationTest.txt |
ླྀ␊ླྀ
|
10 B | |
| 000515 | unicode/part1/U+0F79 NormalizationTest.txt |
ཹ␊ླཱྀ
|
13 B | |
| 000516 | unicode/part1/U+0F81 NormalizationTest.txt |
ཱྀ␊ཱྀ
|
10 B | |
| 000517 | unicode/part1/U+0F93 NormalizationTest.txt |
ྒྷ␊ྒྷ
|
10 B | |
| 000518 | unicode/part1/U+0F9D NormalizationTest.txt |
ྜྷ␊ྜྷ
|
10 B | |
| 000519 | unicode/part1/U+0FA2 NormalizationTest.txt |
ྡྷ␊ྡྷ
|
10 B | |
| 000520 | unicode/part1/U+0FA7 NormalizationTest.txt |
ྦྷ␊ྦྷ
|
10 B | |
| 000521 | unicode/part1/U+0FAC NormalizationTest.txt |
ྫྷ␊ྫྷ
|
10 B | |
| 000522 | unicode/part1/U+0FB9 NormalizationTest.txt |
ྐྵ␊ྐྵ
|
10 B | |
| 000523 | unicode/part1/U+1026 NormalizationTest.txt |
ဦ␊ဦ
|
10 B | |
| 000524 | unicode/part1/U+10FC NormalizationTest.txt |
ჼ␊ნ
|
7 B | |
| 000525 | unicode/part1/U+1B06 NormalizationTest.txt |
ᬆ␊ᬆ
|
10 B | |
| 000526 | unicode/part1/U+1B08 NormalizationTest.txt |
ᬈ␊ᬈ
|
10 B | |
| 000527 | unicode/part1/U+1B0A NormalizationTest.txt |
ᬊ␊ᬊ
|
10 B | |
| 000528 | unicode/part1/U+1B0C NormalizationTest.txt |
ᬌ␊ᬌ
|
10 B | |
| 000529 | unicode/part1/U+1B0E NormalizationTest.txt |
ᬎ␊ᬎ
|
10 B | |
| 000530 | unicode/part1/U+1B12 NormalizationTest.txt |
ᬒ␊ᬒ
|
10 B | |
| 000531 | unicode/part1/U+1B3B NormalizationTest.txt |
ᬻ␊ᬻ
|
10 B | |
| 000532 | unicode/part1/U+1B3D NormalizationTest.txt |
ᬽ␊ᬽ
|
10 B | |
| 000533 | unicode/part1/U+1B40 NormalizationTest.txt |
ᭀ␊ᭀ
|
10 B | |
| 000534 | unicode/part1/U+1B41 NormalizationTest.txt |
ᭁ␊ᭁ
|
10 B | |
| 000535 | unicode/part1/U+1B43 NormalizationTest.txt |
ᭃ␊ᭃ
|
10 B | |
| 000536 | unicode/part1/U+1D2C NormalizationTest.txt |
ᴬ␊A
|
5 B | |
| 000537 | unicode/part1/U+1D2D NormalizationTest.txt |
ᴭ␊Æ
|
6 B | |
| 000538 | unicode/part1/U+1D2E NormalizationTest.txt |
ᴮ␊B
|
5 B | |
| 000539 | unicode/part1/U+1D30 NormalizationTest.txt |
ᴰ␊D
|
5 B | |
| 000540 | unicode/part1/U+1D31 NormalizationTest.txt |
ᴱ␊E
|
5 B | |
| 000541 | unicode/part1/U+1D32 NormalizationTest.txt |
ᴲ␊Ǝ
|
6 B | |
| 000542 | unicode/part1/U+1D33 NormalizationTest.txt |
ᴳ␊G
|
5 B | |
| 000543 | unicode/part1/U+1D34 NormalizationTest.txt |
ᴴ␊H
|
5 B | |
| 000544 | unicode/part1/U+1D35 NormalizationTest.txt |
ᴵ␊I
|
5 B | |
| 000545 | unicode/part1/U+1D36 NormalizationTest.txt |
ᴶ␊J
|
5 B | |
| 000546 | unicode/part1/U+1D37 NormalizationTest.txt |
ᴷ␊K
|
5 B | |
| 000547 | unicode/part1/U+1D38 NormalizationTest.txt |
ᴸ␊L
|
5 B | |
| 000548 | unicode/part1/U+1D39 NormalizationTest.txt |
ᴹ␊M
|
5 B | |
| 000549 | unicode/part1/U+1D3A NormalizationTest.txt |
ᴺ␊N
|
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