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 |
|---|---|---|---|---|
| 000045 | unicode/part1/U+00A0 NormalizationTest.txt |
⟨U+00A0⟩␊
|
4 B | |
| 000046 | unicode/part1/U+00A8 NormalizationTest.txt |
¨␊ ̈
|
6 B | |
| 000047 | unicode/part1/U+00AA NormalizationTest.txt |
ª␊a
|
4 B | |
| 000048 | unicode/part1/U+00AF NormalizationTest.txt |
¯␊ ̄
|
6 B | |
| 000049 | unicode/part1/U+00B2 NormalizationTest.txt |
²␊2
|
4 B | |
| 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 | |
| 000155 | unicode/part1/U+0132 NormalizationTest.txt |
IJ␊IJ
|
5 B | |
| 000156 | unicode/part1/U+0133 NormalizationTest.txt |
ij␊ij
|
5 B | |
| 000167 | unicode/part1/U+013F NormalizationTest.txt |
Ŀ␊L·
|
6 B | |
| 000168 | unicode/part1/U+0140 NormalizationTest.txt |
ŀ␊l·
|
6 B | |
| 000175 | unicode/part1/U+0149 NormalizationTest.txt |
ʼn␊ʼn
|
6 B | |
| 000223 | unicode/part1/U+017F NormalizationTest.txt |
ſ␊s
|
4 B | |
| 000228 | unicode/part1/U+01C4 NormalizationTest.txt |
DŽ␊DŽ␊DŽ
|
11 B | |
| 000229 | unicode/part1/U+01C5 NormalizationTest.txt |
Dž␊Dž␊Dž
|
11 B | |
| 000230 | unicode/part1/U+01C6 NormalizationTest.txt |
dž␊dž␊dž
|
11 B | |
| 000231 | unicode/part1/U+01C7 NormalizationTest.txt |
LJ␊LJ
|
5 B | |
| 000232 | unicode/part1/U+01C8 NormalizationTest.txt |
Lj␊Lj
|
5 B | |
| 000233 | unicode/part1/U+01C9 NormalizationTest.txt |
lj␊lj
|
5 B | |
| 000234 | unicode/part1/U+01CA NormalizationTest.txt |
NJ␊NJ
|
5 B | |
| 000235 | unicode/part1/U+01CB NormalizationTest.txt |
Nj␊Nj
|
5 B | |
| 000236 | unicode/part1/U+01CC NormalizationTest.txt |
nj␊nj
|
5 B | |
| 000270 | unicode/part1/U+01F1 NormalizationTest.txt |
DZ␊DZ
|
5 B | |
| 000271 | unicode/part1/U+01F2 NormalizationTest.txt |
Dz␊Dz
|
5 B | |
| 000272 | unicode/part1/U+01F3 NormalizationTest.txt |
dz␊dz
|
5 B | |
| 000327 | unicode/part1/U+02B0 NormalizationTest.txt |
ʰ␊h
|
4 B | |
| 000328 | unicode/part1/U+02B1 NormalizationTest.txt |
ʱ␊ɦ
|
5 B | |
| 000329 | unicode/part1/U+02B2 NormalizationTest.txt |
ʲ␊j
|
4 B | |
| 000330 | unicode/part1/U+02B3 NormalizationTest.txt |
ʳ␊r
|
4 B | |
| 000331 | unicode/part1/U+02B4 NormalizationTest.txt |
ʴ␊ɹ
|
5 B | |
| 000332 | unicode/part1/U+02B5 NormalizationTest.txt |
ʵ␊ɻ
|
5 B | |
| 000333 | unicode/part1/U+02B6 NormalizationTest.txt |
ʶ␊ʁ
|
5 B | |
| 000334 | unicode/part1/U+02B7 NormalizationTest.txt |
ʷ␊w
|
4 B | |
| 000335 | unicode/part1/U+02B8 NormalizationTest.txt |
ʸ␊y
|
4 B | |
| 000336 | unicode/part1/U+02D8 NormalizationTest.txt |
˘␊ ̆
|
6 B | |
| 000337 | unicode/part1/U+02D9 NormalizationTest.txt |
˙␊ ̇
|
6 B | |
| 000338 | unicode/part1/U+02DA NormalizationTest.txt |
˚␊ ̊
|
6 B | |
| 000339 | unicode/part1/U+02DB NormalizationTest.txt |
˛␊ ̨
|
6 B | |
| 000340 | unicode/part1/U+02DC NormalizationTest.txt |
˜␊ ̃
|
6 B | |
| 000341 | unicode/part1/U+02DD NormalizationTest.txt |
˝␊ ̋
|
6 B | |
| 000342 | unicode/part1/U+02E0 NormalizationTest.txt |
ˠ␊ɣ
|
5 B | |
| 000343 | unicode/part1/U+02E1 NormalizationTest.txt |
ˡ␊l
|
4 B | |
| 000344 | unicode/part1/U+02E2 NormalizationTest.txt |
ˢ␊s
|
4 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