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
956 of 11,911 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 000965 | unicode/part1/U+1F64 NormalizationTest.txt |
ὤ␊ὤ
|
10 B | |
| 000966 | unicode/part1/U+1F65 NormalizationTest.txt |
ὥ␊ὥ
|
10 B | |
| 000967 | unicode/part1/U+1F66 NormalizationTest.txt |
ὦ␊ὦ
|
10 B | |
| 000968 | unicode/part1/U+1F67 NormalizationTest.txt |
ὧ␊ὧ
|
10 B | |
| 000969 | unicode/part1/U+1F68 NormalizationTest.txt |
Ὠ␊Ὠ
|
8 B | |
| 000970 | unicode/part1/U+1F69 NormalizationTest.txt |
Ὡ␊Ὡ
|
8 B | |
| 000971 | unicode/part1/U+1F6A NormalizationTest.txt |
Ὢ␊Ὢ
|
10 B | |
| 000972 | unicode/part1/U+1F6B NormalizationTest.txt |
Ὣ␊Ὣ
|
10 B | |
| 000973 | unicode/part1/U+1F6C NormalizationTest.txt |
Ὤ␊Ὤ
|
10 B | |
| 000974 | unicode/part1/U+1F6D NormalizationTest.txt |
Ὥ␊Ὥ
|
10 B | |
| 000975 | unicode/part1/U+1F6E NormalizationTest.txt |
Ὦ␊Ὦ
|
10 B | |
| 000976 | unicode/part1/U+1F6F NormalizationTest.txt |
Ὧ␊Ὧ
|
10 B | |
| 000977 | unicode/part1/U+1F70 NormalizationTest.txt |
ὰ␊ὰ
|
8 B | |
| 000979 | unicode/part1/U+1F72 NormalizationTest.txt |
ὲ␊ὲ
|
8 B | |
| 000981 | unicode/part1/U+1F74 NormalizationTest.txt |
ὴ␊ὴ
|
8 B | |
| 000983 | unicode/part1/U+1F76 NormalizationTest.txt |
ὶ␊ὶ
|
8 B | |
| 000985 | unicode/part1/U+1F78 NormalizationTest.txt |
ὸ␊ὸ
|
8 B | |
| 000987 | unicode/part1/U+1F7A NormalizationTest.txt |
ὺ␊ὺ
|
8 B | |
| 000989 | unicode/part1/U+1F7C NormalizationTest.txt |
ὼ␊ὼ
|
8 B | |
| 000991 | unicode/part1/U+1F80 NormalizationTest.txt |
ᾀ␊ᾀ
|
10 B | |
| 000992 | unicode/part1/U+1F81 NormalizationTest.txt |
ᾁ␊ᾁ
|
10 B | |
| 000993 | unicode/part1/U+1F82 NormalizationTest.txt |
ᾂ␊ᾂ
|
12 B | |
| 000994 | unicode/part1/U+1F83 NormalizationTest.txt |
ᾃ␊ᾃ
|
12 B | |
| 000995 | unicode/part1/U+1F84 NormalizationTest.txt |
ᾄ␊ᾄ
|
12 B | |
| 000996 | unicode/part1/U+1F85 NormalizationTest.txt |
ᾅ␊ᾅ
|
12 B | |
| 000997 | unicode/part1/U+1F86 NormalizationTest.txt |
ᾆ␊ᾆ
|
12 B | |
| 000998 | unicode/part1/U+1F87 NormalizationTest.txt |
ᾇ␊ᾇ
|
12 B | |
| 000999 | unicode/part1/U+1F88 NormalizationTest.txt |
ᾈ␊ᾈ
|
10 B | |
| 001000 | unicode/part1/U+1F89 NormalizationTest.txt |
ᾉ␊ᾉ
|
10 B | |
| 001001 | unicode/part1/U+1F8A NormalizationTest.txt |
ᾊ␊ᾊ
|
12 B | |
| 001002 | unicode/part1/U+1F8B NormalizationTest.txt |
ᾋ␊ᾋ
|
12 B | |
| 001003 | unicode/part1/U+1F8C NormalizationTest.txt |
ᾌ␊ᾌ
|
12 B | |
| 001004 | unicode/part1/U+1F8D NormalizationTest.txt |
ᾍ␊ᾍ
|
12 B | |
| 001005 | unicode/part1/U+1F8E NormalizationTest.txt |
ᾎ␊ᾎ
|
12 B | |
| 001006 | unicode/part1/U+1F8F NormalizationTest.txt |
ᾏ␊ᾏ
|
12 B | |
| 001007 | unicode/part1/U+1F90 NormalizationTest.txt |
ᾐ␊ᾐ
|
10 B | |
| 001008 | unicode/part1/U+1F91 NormalizationTest.txt |
ᾑ␊ᾑ
|
10 B | |
| 001009 | unicode/part1/U+1F92 NormalizationTest.txt |
ᾒ␊ᾒ
|
12 B | |
| 001010 | unicode/part1/U+1F93 NormalizationTest.txt |
ᾓ␊ᾓ
|
12 B | |
| 001011 | unicode/part1/U+1F94 NormalizationTest.txt |
ᾔ␊ᾔ
|
12 B | |
| 001012 | unicode/part1/U+1F95 NormalizationTest.txt |
ᾕ␊ᾕ
|
12 B | |
| 001013 | unicode/part1/U+1F96 NormalizationTest.txt |
ᾖ␊ᾖ
|
12 B | |
| 001014 | unicode/part1/U+1F97 NormalizationTest.txt |
ᾗ␊ᾗ
|
12 B | |
| 001015 | unicode/part1/U+1F98 NormalizationTest.txt |
ᾘ␊ᾘ
|
10 B | |
| 001016 | unicode/part1/U+1F99 NormalizationTest.txt |
ᾙ␊ᾙ
|
10 B | |
| 001017 | unicode/part1/U+1F9A NormalizationTest.txt |
ᾚ␊ᾚ
|
12 B | |
| 001018 | unicode/part1/U+1F9B NormalizationTest.txt |
ᾛ␊ᾛ
|
12 B | |
| 001019 | unicode/part1/U+1F9C NormalizationTest.txt |
ᾜ␊ᾜ
|
12 B | |
| 001020 | unicode/part1/U+1F9D NormalizationTest.txt |
ᾝ␊ᾝ
|
12 B | |
| 001021 | unicode/part1/U+1F9E NormalizationTest.txt |
ᾞ␊ᾞ
|
12 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