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 |
|---|---|---|---|---|
| 003000 | unicode/part1/U+FBAD NormalizationTest.txt |
ﮭ␊ھ
|
6 B | |
| 003001 | unicode/part1/U+FBAE NormalizationTest.txt |
ﮮ␊ے
|
6 B | |
| 003002 | unicode/part1/U+FBAF NormalizationTest.txt |
ﮯ␊ے
|
6 B | |
| 003003 | unicode/part1/U+FBB0 NormalizationTest.txt |
ﮰ␊ۓ␊ۓ
|
11 B | |
| 003004 | unicode/part1/U+FBB1 NormalizationTest.txt |
ﮱ␊ۓ␊ۓ
|
11 B | |
| 003005 | unicode/part1/U+FBD3 NormalizationTest.txt |
ﯓ␊ڭ
|
6 B | |
| 003006 | unicode/part1/U+FBD4 NormalizationTest.txt |
ﯔ␊ڭ
|
6 B | |
| 003007 | unicode/part1/U+FBD5 NormalizationTest.txt |
ﯕ␊ڭ
|
6 B | |
| 003008 | unicode/part1/U+FBD6 NormalizationTest.txt |
ﯖ␊ڭ
|
6 B | |
| 003009 | unicode/part1/U+FBD7 NormalizationTest.txt |
ﯗ␊ۇ
|
6 B | |
| 003010 | unicode/part1/U+FBD8 NormalizationTest.txt |
ﯘ␊ۇ
|
6 B | |
| 003011 | unicode/part1/U+FBD9 NormalizationTest.txt |
ﯙ␊ۆ
|
6 B | |
| 003012 | unicode/part1/U+FBDA NormalizationTest.txt |
ﯚ␊ۆ
|
6 B | |
| 003013 | unicode/part1/U+FBDB NormalizationTest.txt |
ﯛ␊ۈ
|
6 B | |
| 003014 | unicode/part1/U+FBDC NormalizationTest.txt |
ﯜ␊ۈ
|
6 B | |
| 003015 | unicode/part1/U+FBDD NormalizationTest.txt |
ﯝ␊ۇٴ
|
8 B | |
| 003016 | unicode/part1/U+FBDE NormalizationTest.txt |
ﯞ␊ۋ
|
6 B | |
| 003017 | unicode/part1/U+FBDF NormalizationTest.txt |
ﯟ␊ۋ
|
6 B | |
| 003018 | unicode/part1/U+FBE0 NormalizationTest.txt |
ﯠ␊ۅ
|
6 B | |
| 003019 | unicode/part1/U+FBE1 NormalizationTest.txt |
ﯡ␊ۅ
|
6 B | |
| 003020 | unicode/part1/U+FBE2 NormalizationTest.txt |
ﯢ␊ۉ
|
6 B | |
| 003021 | unicode/part1/U+FBE3 NormalizationTest.txt |
ﯣ␊ۉ
|
6 B | |
| 003022 | unicode/part1/U+FBE4 NormalizationTest.txt |
ﯤ␊ې
|
6 B | |
| 003023 | unicode/part1/U+FBE5 NormalizationTest.txt |
ﯥ␊ې
|
6 B | |
| 003024 | unicode/part1/U+FBE6 NormalizationTest.txt |
ﯦ␊ې
|
6 B | |
| 003025 | unicode/part1/U+FBE7 NormalizationTest.txt |
ﯧ␊ې
|
6 B | |
| 003026 | unicode/part1/U+FBE8 NormalizationTest.txt |
ﯨ␊ى
|
6 B | |
| 003027 | unicode/part1/U+FBE9 NormalizationTest.txt |
ﯩ␊ى
|
6 B | |
| 003028 | unicode/part1/U+FBEA NormalizationTest.txt |
ﯪ␊ئا␊ئا
|
15 B | |
| 003029 | unicode/part1/U+FBEB NormalizationTest.txt |
ﯫ␊ئا␊ئا
|
15 B | |
| 003030 | unicode/part1/U+FBEC NormalizationTest.txt |
ﯬ␊ئە␊ئە
|
15 B | |
| 003031 | unicode/part1/U+FBED NormalizationTest.txt |
ﯭ␊ئە␊ئە
|
15 B | |
| 003032 | unicode/part1/U+FBEE NormalizationTest.txt |
ﯮ␊ئو␊ئو
|
15 B | |
| 003033 | unicode/part1/U+FBEF NormalizationTest.txt |
ﯯ␊ئو␊ئو
|
15 B | |
| 003034 | unicode/part1/U+FBF0 NormalizationTest.txt |
ﯰ␊ئۇ␊ئۇ
|
15 B | |
| 003035 | unicode/part1/U+FBF1 NormalizationTest.txt |
ﯱ␊ئۇ␊ئۇ
|
15 B | |
| 003036 | unicode/part1/U+FBF2 NormalizationTest.txt |
ﯲ␊ئۆ␊ئۆ
|
15 B | |
| 003037 | unicode/part1/U+FBF3 NormalizationTest.txt |
ﯳ␊ئۆ␊ئۆ
|
15 B | |
| 003038 | unicode/part1/U+FBF4 NormalizationTest.txt |
ﯴ␊ئۈ␊ئۈ
|
15 B | |
| 003039 | unicode/part1/U+FBF5 NormalizationTest.txt |
ﯵ␊ئۈ␊ئۈ
|
15 B | |
| 003040 | unicode/part1/U+FBF6 NormalizationTest.txt |
ﯶ␊ئې␊ئې
|
15 B | |
| 003041 | unicode/part1/U+FBF7 NormalizationTest.txt |
ﯷ␊ئې␊ئې
|
15 B | |
| 003042 | unicode/part1/U+FBF8 NormalizationTest.txt |
ﯸ␊ئې␊ئې
|
15 B | |
| 003043 | unicode/part1/U+FBF9 NormalizationTest.txt |
ﯹ␊ئى␊ئى
|
15 B | |
| 003044 | unicode/part1/U+FBFA NormalizationTest.txt |
ﯺ␊ئى␊ئى
|
15 B | |
| 003045 | unicode/part1/U+FBFB NormalizationTest.txt |
ﯻ␊ئى␊ئى
|
15 B | |
| 003046 | unicode/part1/U+FBFC NormalizationTest.txt |
ﯼ␊ی
|
6 B | |
| 003047 | unicode/part1/U+FBFD NormalizationTest.txt |
ﯽ␊ی
|
6 B | |
| 003048 | unicode/part1/U+FBFE NormalizationTest.txt |
ﯾ␊ی
|
6 B | |
| 003049 | unicode/part1/U+FBFF 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