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 |
|---|---|---|---|---|
| 000050 | unicode/part1/U+00B3 NormalizationTest.txt |
³␊3
|
4 B | |
| 000051 | unicode/part1/U+00B4 NormalizationTest.txt |
´␊ ́
|
6 B | |
| 000052 | unicode/part1/U+00B5 NormalizationTest.txt |
µ␊μ
|
5 B | |
| 000053 | unicode/part1/U+00B8 NormalizationTest.txt |
¸␊ ̧
|
6 B | |
| 000054 | unicode/part1/U+00B9 NormalizationTest.txt |
¹␊1
|
4 B | |
| 000055 | unicode/part1/U+00BA NormalizationTest.txt |
º␊o
|
4 B | |
| 000056 | unicode/part1/U+00BC NormalizationTest.txt |
¼␊1⁄4
|
8 B | |
| 000057 | unicode/part1/U+00BD NormalizationTest.txt |
½␊1⁄2
|
8 B | |
| 000058 | unicode/part1/U+00BE NormalizationTest.txt |
¾␊3⁄4
|
8 B | |
| 000059 | unicode/part1/U+00C0 NormalizationTest.txt |
À␊À
|
6 B | |
| 000060 | unicode/part1/U+00C1 NormalizationTest.txt |
Á␊Á
|
6 B | |
| 000061 | unicode/part1/U+00C2 NormalizationTest.txt |
Â␊Â
|
6 B | |
| 000062 | unicode/part1/U+00C3 NormalizationTest.txt |
Ã␊Ã
|
6 B | |
| 000063 | unicode/part1/U+00C4 NormalizationTest.txt |
Ä␊Ä
|
6 B | |
| 000064 | unicode/part1/U+00C5 NormalizationTest.txt |
Å␊Å
|
6 B | |
| 000065 | unicode/part1/U+00C7 NormalizationTest.txt |
Ç␊Ç
|
6 B | |
| 000066 | unicode/part1/U+00C9 NormalizationTest.txt |
É␊É
|
6 B | |
| 000067 | unicode/part1/U+00CA NormalizationTest.txt |
Ê␊Ê
|
6 B | |
| 000068 | unicode/part1/U+00CB NormalizationTest.txt |
Ë␊Ë
|
6 B | |
| 000069 | unicode/part1/U+00CC NormalizationTest.txt |
Ì␊Ì
|
6 B | |
| 000070 | unicode/part1/U+00CD NormalizationTest.txt |
Í␊Í
|
6 B | |
| 000071 | unicode/part1/U+00CE NormalizationTest.txt |
Î␊Î
|
6 B | |
| 000072 | unicode/part1/U+00CF NormalizationTest.txt |
Ï␊Ï
|
6 B | |
| 000073 | unicode/part1/U+00D1 NormalizationTest.txt |
Ñ␊Ñ
|
6 B | |
| 000074 | unicode/part1/U+00D2 NormalizationTest.txt |
Ò␊Ò
|
6 B | |
| 000075 | unicode/part1/U+00D3 NormalizationTest.txt |
Ó␊Ó
|
6 B | |
| 000076 | unicode/part1/U+00D4 NormalizationTest.txt |
Ô␊Ô
|
6 B | |
| 000077 | unicode/part1/U+00D5 NormalizationTest.txt |
Õ␊Õ
|
6 B | |
| 000078 | unicode/part1/U+00D6 NormalizationTest.txt |
Ö␊Ö
|
6 B | |
| 000079 | unicode/part1/U+00D9 NormalizationTest.txt |
Ù␊Ù
|
6 B | |
| 000080 | unicode/part1/U+00DA NormalizationTest.txt |
Ú␊Ú
|
6 B | |
| 000081 | unicode/part1/U+00DB NormalizationTest.txt |
Û␊Û
|
6 B | |
| 000082 | unicode/part1/U+00DC NormalizationTest.txt |
Ü␊Ü
|
6 B | |
| 000083 | unicode/part1/U+00DD NormalizationTest.txt |
Ý␊Ý
|
6 B | |
| 000084 | unicode/part1/U+00E0 NormalizationTest.txt |
à␊à
|
6 B | |
| 000085 | unicode/part1/U+00E1 NormalizationTest.txt |
á␊á
|
6 B | |
| 000086 | unicode/part1/U+00E2 NormalizationTest.txt |
â␊â
|
6 B | |
| 000087 | unicode/part1/U+00E3 NormalizationTest.txt |
ã␊ã
|
6 B | |
| 000088 | unicode/part1/U+00E4 NormalizationTest.txt |
ä␊ä
|
6 B | |
| 000089 | unicode/part1/U+00E5 NormalizationTest.txt |
å␊å
|
6 B | |
| 000090 | unicode/part1/U+00E7 NormalizationTest.txt |
ç␊ç
|
6 B | |
| 000091 | unicode/part1/U+00E8 NormalizationTest.txt |
è␊è
|
6 B | |
| 000092 | unicode/part1/U+00E9 NormalizationTest.txt |
é␊é
|
6 B | |
| 000093 | unicode/part1/U+00EA NormalizationTest.txt |
ê␊ê
|
6 B | |
| 000094 | unicode/part1/U+00EB NormalizationTest.txt |
ë␊ë
|
6 B | |
| 000095 | unicode/part1/U+00EC NormalizationTest.txt |
ì␊ì
|
6 B | |
| 000096 | unicode/part1/U+00ED NormalizationTest.txt |
í␊í
|
6 B | |
| 000097 | unicode/part1/U+00EE NormalizationTest.txt |
î␊î
|
6 B | |
| 000098 | unicode/part1/U+00EF NormalizationTest.txt |
ï␊ï
|
6 B | |
| 000099 | unicode/part1/U+00F1 NormalizationTest.txt |
ñ␊ñ
|
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