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
5,928 of 11,911 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 001145 | unicode/part1/U+2079 NormalizationTest.txt |
⁹␊9
|
5 B | |
| 001146 | unicode/part1/U+207A NormalizationTest.txt |
⁺␊+
|
5 B | |
| 001147 | unicode/part1/U+207B NormalizationTest.txt |
⁻␊−
|
7 B | |
| 001148 | unicode/part1/U+207C NormalizationTest.txt |
⁼␊=
|
5 B | |
| 001149 | unicode/part1/U+207D NormalizationTest.txt |
⁽␊(
|
5 B | |
| 001150 | unicode/part1/U+207E NormalizationTest.txt |
⁾␊)
|
5 B | |
| 001151 | unicode/part1/U+207F NormalizationTest.txt |
ⁿ␊n
|
5 B | |
| 001152 | unicode/part1/U+2080 NormalizationTest.txt |
₀␊0
|
5 B | |
| 001153 | unicode/part1/U+2081 NormalizationTest.txt |
₁␊1
|
5 B | |
| 001154 | unicode/part1/U+2082 NormalizationTest.txt |
₂␊2
|
5 B | |
| 001155 | unicode/part1/U+2083 NormalizationTest.txt |
₃␊3
|
5 B | |
| 001156 | unicode/part1/U+2084 NormalizationTest.txt |
₄␊4
|
5 B | |
| 001157 | unicode/part1/U+2085 NormalizationTest.txt |
₅␊5
|
5 B | |
| 001158 | unicode/part1/U+2086 NormalizationTest.txt |
₆␊6
|
5 B | |
| 001159 | unicode/part1/U+2087 NormalizationTest.txt |
₇␊7
|
5 B | |
| 001160 | unicode/part1/U+2088 NormalizationTest.txt |
₈␊8
|
5 B | |
| 001161 | unicode/part1/U+2089 NormalizationTest.txt |
₉␊9
|
5 B | |
| 001162 | unicode/part1/U+208A NormalizationTest.txt |
₊␊+
|
5 B | |
| 001163 | unicode/part1/U+208B NormalizationTest.txt |
₋␊−
|
7 B | |
| 001164 | unicode/part1/U+208C NormalizationTest.txt |
₌␊=
|
5 B | |
| 001165 | unicode/part1/U+208D NormalizationTest.txt |
₍␊(
|
5 B | |
| 001166 | unicode/part1/U+208E NormalizationTest.txt |
₎␊)
|
5 B | |
| 001167 | unicode/part1/U+2090 NormalizationTest.txt |
ₐ␊a
|
5 B | |
| 001168 | unicode/part1/U+2091 NormalizationTest.txt |
ₑ␊e
|
5 B | |
| 001169 | unicode/part1/U+2092 NormalizationTest.txt |
ₒ␊o
|
5 B | |
| 001170 | unicode/part1/U+2093 NormalizationTest.txt |
ₓ␊x
|
5 B | |
| 001171 | unicode/part1/U+2094 NormalizationTest.txt |
ₔ␊ə
|
6 B | |
| 001172 | unicode/part1/U+2095 NormalizationTest.txt |
ₕ␊h
|
5 B | |
| 001173 | unicode/part1/U+2096 NormalizationTest.txt |
ₖ␊k
|
5 B | |
| 001174 | unicode/part1/U+2097 NormalizationTest.txt |
ₗ␊l
|
5 B | |
| 001175 | unicode/part1/U+2098 NormalizationTest.txt |
ₘ␊m
|
5 B | |
| 001176 | unicode/part1/U+2099 NormalizationTest.txt |
ₙ␊n
|
5 B | |
| 001177 | unicode/part1/U+209A NormalizationTest.txt |
ₚ␊p
|
5 B | |
| 001178 | unicode/part1/U+209B NormalizationTest.txt |
ₛ␊s
|
5 B | |
| 001179 | unicode/part1/U+209C NormalizationTest.txt |
ₜ␊t
|
5 B | |
| 001180 | unicode/part1/U+20A8 NormalizationTest.txt |
₨␊Rs
|
6 B | |
| 001181 | unicode/part1/U+2100 NormalizationTest.txt |
℀␊a/c
|
7 B | |
| 001182 | unicode/part1/U+2101 NormalizationTest.txt |
℁␊a/s
|
7 B | |
| 001183 | unicode/part1/U+2102 NormalizationTest.txt |
ℂ␊C
|
5 B | |
| 001184 | unicode/part1/U+2103 NormalizationTest.txt |
℃␊°C
|
7 B | |
| 001185 | unicode/part1/U+2105 NormalizationTest.txt |
℅␊c/o
|
7 B | |
| 001186 | unicode/part1/U+2106 NormalizationTest.txt |
℆␊c/u
|
7 B | |
| 001187 | unicode/part1/U+2107 NormalizationTest.txt |
ℇ␊Ɛ
|
6 B | |
| 001188 | unicode/part1/U+2109 NormalizationTest.txt |
℉␊°F
|
7 B | |
| 001189 | unicode/part1/U+210A NormalizationTest.txt |
ℊ␊g
|
5 B | |
| 001190 | unicode/part1/U+210B NormalizationTest.txt |
ℋ␊H
|
5 B | |
| 001191 | unicode/part1/U+210C NormalizationTest.txt |
ℌ␊H
|
5 B | |
| 001192 | unicode/part1/U+210D NormalizationTest.txt |
ℍ␊H
|
5 B | |
| 001193 | unicode/part1/U+210E NormalizationTest.txt |
ℎ␊h
|
5 B | |
| 001194 | unicode/part1/U+210F 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