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
3,833 of 11,911 cases
| Case | Name | Expected | Note | Size |
|---|---|---|---|---|
| 001234 | unicode/part1/U+2147 NormalizationTest.txt |
ⅇ␊e
|
5 B | |
| 001235 | unicode/part1/U+2148 NormalizationTest.txt |
ⅈ␊i
|
5 B | |
| 001236 | unicode/part1/U+2149 NormalizationTest.txt |
ⅉ␊j
|
5 B | |
| 001237 | unicode/part1/U+2150 NormalizationTest.txt |
⅐␊1⁄7
|
9 B | |
| 001238 | unicode/part1/U+2151 NormalizationTest.txt |
⅑␊1⁄9
|
9 B | |
| 001239 | unicode/part1/U+2152 NormalizationTest.txt |
⅒␊1⁄10
|
10 B | |
| 001240 | unicode/part1/U+2153 NormalizationTest.txt |
⅓␊1⁄3
|
9 B | |
| 001241 | unicode/part1/U+2154 NormalizationTest.txt |
⅔␊2⁄3
|
9 B | |
| 001242 | unicode/part1/U+2155 NormalizationTest.txt |
⅕␊1⁄5
|
9 B | |
| 001243 | unicode/part1/U+2156 NormalizationTest.txt |
⅖␊2⁄5
|
9 B | |
| 001244 | unicode/part1/U+2157 NormalizationTest.txt |
⅗␊3⁄5
|
9 B | |
| 001245 | unicode/part1/U+2158 NormalizationTest.txt |
⅘␊4⁄5
|
9 B | |
| 001246 | unicode/part1/U+2159 NormalizationTest.txt |
⅙␊1⁄6
|
9 B | |
| 001247 | unicode/part1/U+215A NormalizationTest.txt |
⅚␊5⁄6
|
9 B | |
| 001248 | unicode/part1/U+215B NormalizationTest.txt |
⅛␊1⁄8
|
9 B | |
| 001249 | unicode/part1/U+215C NormalizationTest.txt |
⅜␊3⁄8
|
9 B | |
| 001250 | unicode/part1/U+215D NormalizationTest.txt |
⅝␊5⁄8
|
9 B | |
| 001251 | unicode/part1/U+215E NormalizationTest.txt |
⅞␊7⁄8
|
9 B | |
| 001252 | unicode/part1/U+215F NormalizationTest.txt |
⅟␊1⁄
|
8 B | |
| 001253 | unicode/part1/U+2160 NormalizationTest.txt |
Ⅰ␊I
|
5 B | |
| 001254 | unicode/part1/U+2161 NormalizationTest.txt |
Ⅱ␊II
|
6 B | |
| 001255 | unicode/part1/U+2162 NormalizationTest.txt |
Ⅲ␊III
|
7 B | |
| 001256 | unicode/part1/U+2163 NormalizationTest.txt |
Ⅳ␊IV
|
6 B | |
| 001257 | unicode/part1/U+2164 NormalizationTest.txt |
Ⅴ␊V
|
5 B | |
| 001258 | unicode/part1/U+2165 NormalizationTest.txt |
Ⅵ␊VI
|
6 B | |
| 001259 | unicode/part1/U+2166 NormalizationTest.txt |
Ⅶ␊VII
|
7 B | |
| 001260 | unicode/part1/U+2167 NormalizationTest.txt |
Ⅷ␊VIII
|
8 B | |
| 001261 | unicode/part1/U+2168 NormalizationTest.txt |
Ⅸ␊IX
|
6 B | |
| 001262 | unicode/part1/U+2169 NormalizationTest.txt |
Ⅹ␊X
|
5 B | |
| 001263 | unicode/part1/U+216A NormalizationTest.txt |
Ⅺ␊XI
|
6 B | |
| 001264 | unicode/part1/U+216B NormalizationTest.txt |
Ⅻ␊XII
|
7 B | |
| 001265 | unicode/part1/U+216C NormalizationTest.txt |
Ⅼ␊L
|
5 B | |
| 001266 | unicode/part1/U+216D NormalizationTest.txt |
Ⅽ␊C
|
5 B | |
| 001267 | unicode/part1/U+216E NormalizationTest.txt |
Ⅾ␊D
|
5 B | |
| 001268 | unicode/part1/U+216F NormalizationTest.txt |
Ⅿ␊M
|
5 B | |
| 001269 | unicode/part1/U+2170 NormalizationTest.txt |
ⅰ␊i
|
5 B | |
| 001270 | unicode/part1/U+2171 NormalizationTest.txt |
ⅱ␊ii
|
6 B | |
| 001271 | unicode/part1/U+2172 NormalizationTest.txt |
ⅲ␊iii
|
7 B | |
| 001272 | unicode/part1/U+2173 NormalizationTest.txt |
ⅳ␊iv
|
6 B | |
| 001273 | unicode/part1/U+2174 NormalizationTest.txt |
ⅴ␊v
|
5 B | |
| 001274 | unicode/part1/U+2175 NormalizationTest.txt |
ⅵ␊vi
|
6 B | |
| 001275 | unicode/part1/U+2176 NormalizationTest.txt |
ⅶ␊vii
|
7 B | |
| 001276 | unicode/part1/U+2177 NormalizationTest.txt |
ⅷ␊viii
|
8 B | |
| 001277 | unicode/part1/U+2178 NormalizationTest.txt |
ⅸ␊ix
|
6 B | |
| 001278 | unicode/part1/U+2179 NormalizationTest.txt |
ⅹ␊x
|
5 B | |
| 001279 | unicode/part1/U+217A NormalizationTest.txt |
ⅺ␊xi
|
6 B | |
| 001280 | unicode/part1/U+217B NormalizationTest.txt |
ⅻ␊xii
|
7 B | |
| 001281 | unicode/part1/U+217C NormalizationTest.txt |
ⅼ␊l
|
5 B | |
| 001282 | unicode/part1/U+217D NormalizationTest.txt |
ⅽ␊c
|
5 B | |
| 001283 | unicode/part1/U+217E NormalizationTest.txt |
ⅾ␊d
|
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