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 |
|---|---|---|---|---|
| 003800 | unicode/part1/U+FF61 NormalizationTest.txt |
。␊。
|
7 B | |
| 003801 | unicode/part1/U+FF62 NormalizationTest.txt |
「␊「
|
7 B | |
| 003802 | unicode/part1/U+FF63 NormalizationTest.txt |
」␊」
|
7 B | |
| 003803 | unicode/part1/U+FF64 NormalizationTest.txt |
、␊、
|
7 B | |
| 003804 | unicode/part1/U+FF65 NormalizationTest.txt |
・␊・
|
7 B | |
| 003805 | unicode/part1/U+FF66 NormalizationTest.txt |
ヲ␊ヲ
|
7 B | |
| 003806 | unicode/part1/U+FF67 NormalizationTest.txt |
ァ␊ァ
|
7 B | |
| 003807 | unicode/part1/U+FF68 NormalizationTest.txt |
ィ␊ィ
|
7 B | |
| 003808 | unicode/part1/U+FF69 NormalizationTest.txt |
ゥ␊ゥ
|
7 B | |
| 003809 | unicode/part1/U+FF6A NormalizationTest.txt |
ェ␊ェ
|
7 B | |
| 003810 | unicode/part1/U+FF6B NormalizationTest.txt |
ォ␊ォ
|
7 B | |
| 003811 | unicode/part1/U+FF6C NormalizationTest.txt |
ャ␊ャ
|
7 B | |
| 003812 | unicode/part1/U+FF6D NormalizationTest.txt |
ュ␊ュ
|
7 B | |
| 003813 | unicode/part1/U+FF6E NormalizationTest.txt |
ョ␊ョ
|
7 B | |
| 003814 | unicode/part1/U+FF6F NormalizationTest.txt |
ッ␊ッ
|
7 B | |
| 003815 | unicode/part1/U+FF70 NormalizationTest.txt |
ー␊ー
|
7 B | |
| 003816 | unicode/part1/U+FF71 NormalizationTest.txt |
ア␊ア
|
7 B | |
| 003817 | unicode/part1/U+FF72 NormalizationTest.txt |
イ␊イ
|
7 B | |
| 003818 | unicode/part1/U+FF73 NormalizationTest.txt |
ウ␊ウ
|
7 B | |
| 003819 | unicode/part1/U+FF74 NormalizationTest.txt |
エ␊エ
|
7 B | |
| 003820 | unicode/part1/U+FF75 NormalizationTest.txt |
オ␊オ
|
7 B | |
| 003821 | unicode/part1/U+FF76 NormalizationTest.txt |
カ␊カ
|
7 B | |
| 003822 | unicode/part1/U+FF77 NormalizationTest.txt |
キ␊キ
|
7 B | |
| 003823 | unicode/part1/U+FF78 NormalizationTest.txt |
ク␊ク
|
7 B | |
| 003824 | unicode/part1/U+FF79 NormalizationTest.txt |
ケ␊ケ
|
7 B | |
| 003825 | unicode/part1/U+FF7A NormalizationTest.txt |
コ␊コ
|
7 B | |
| 003826 | unicode/part1/U+FF7B NormalizationTest.txt |
サ␊サ
|
7 B | |
| 003827 | unicode/part1/U+FF7C NormalizationTest.txt |
シ␊シ
|
7 B | |
| 003828 | unicode/part1/U+FF7D NormalizationTest.txt |
ス␊ス
|
7 B | |
| 003829 | unicode/part1/U+FF7E NormalizationTest.txt |
セ␊セ
|
7 B | |
| 003830 | unicode/part1/U+FF7F NormalizationTest.txt |
ソ␊ソ
|
7 B | |
| 003831 | unicode/part1/U+FF80 NormalizationTest.txt |
タ␊タ
|
7 B | |
| 003832 | unicode/part1/U+FF81 NormalizationTest.txt |
チ␊チ
|
7 B | |
| 003833 | unicode/part1/U+FF82 NormalizationTest.txt |
ツ␊ツ
|
7 B | |
| 003834 | unicode/part1/U+FF83 NormalizationTest.txt |
テ␊テ
|
7 B | |
| 003835 | unicode/part1/U+FF84 NormalizationTest.txt |
ト␊ト
|
7 B | |
| 003836 | unicode/part1/U+FF85 NormalizationTest.txt |
ナ␊ナ
|
7 B | |
| 003837 | unicode/part1/U+FF86 NormalizationTest.txt |
ニ␊ニ
|
7 B | |
| 003838 | unicode/part1/U+FF87 NormalizationTest.txt |
ヌ␊ヌ
|
7 B | |
| 003839 | unicode/part1/U+FF88 NormalizationTest.txt |
ネ␊ネ
|
7 B | |
| 003840 | unicode/part1/U+FF89 NormalizationTest.txt |
ノ␊ノ
|
7 B | |
| 003841 | unicode/part1/U+FF8A NormalizationTest.txt |
ハ␊ハ
|
7 B | |
| 003842 | unicode/part1/U+FF8B NormalizationTest.txt |
ヒ␊ヒ
|
7 B | |
| 003843 | unicode/part1/U+FF8C NormalizationTest.txt |
フ␊フ
|
7 B | |
| 003844 | unicode/part1/U+FF8D NormalizationTest.txt |
ヘ␊ヘ
|
7 B | |
| 003845 | unicode/part1/U+FF8E NormalizationTest.txt |
ホ␊ホ
|
7 B | |
| 003846 | unicode/part1/U+FF8F NormalizationTest.txt |
マ␊マ
|
7 B | |
| 003847 | unicode/part1/U+FF90 NormalizationTest.txt |
ミ␊ミ
|
7 B | |
| 003848 | unicode/part1/U+FF91 NormalizationTest.txt |
ム␊ム
|
7 B | |
| 003849 | unicode/part1/U+FF92 NormalizationTest.txt |
メ␊メ
|
7 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