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 |
|---|---|---|---|---|
| 003683 | unicode/part1/U+FEE8 NormalizationTest.txt |
ﻨ␊ن
|
6 B | |
| 003684 | unicode/part1/U+FEE9 NormalizationTest.txt |
ﻩ␊ه
|
6 B | |
| 003685 | unicode/part1/U+FEEA NormalizationTest.txt |
ﻪ␊ه
|
6 B | |
| 003686 | unicode/part1/U+FEEB NormalizationTest.txt |
ﻫ␊ه
|
6 B | |
| 003687 | unicode/part1/U+FEEC NormalizationTest.txt |
ﻬ␊ه
|
6 B | |
| 003688 | unicode/part1/U+FEED NormalizationTest.txt |
ﻭ␊و
|
6 B | |
| 003689 | unicode/part1/U+FEEE NormalizationTest.txt |
ﻮ␊و
|
6 B | |
| 003690 | unicode/part1/U+FEEF NormalizationTest.txt |
ﻯ␊ى
|
6 B | |
| 003691 | unicode/part1/U+FEF0 NormalizationTest.txt |
ﻰ␊ى
|
6 B | |
| 003692 | unicode/part1/U+FEF1 NormalizationTest.txt |
ﻱ␊ي
|
6 B | |
| 003693 | unicode/part1/U+FEF2 NormalizationTest.txt |
ﻲ␊ي
|
6 B | |
| 003694 | unicode/part1/U+FEF3 NormalizationTest.txt |
ﻳ␊ي
|
6 B | |
| 003695 | unicode/part1/U+FEF4 NormalizationTest.txt |
ﻴ␊ي
|
6 B | |
| 003696 | unicode/part1/U+FEF5 NormalizationTest.txt |
ﻵ␊لآ␊لآ
|
15 B | |
| 003697 | unicode/part1/U+FEF6 NormalizationTest.txt |
ﻶ␊لآ␊لآ
|
15 B | |
| 003698 | unicode/part1/U+FEF7 NormalizationTest.txt |
ﻷ␊لأ␊لأ
|
15 B | |
| 003699 | unicode/part1/U+FEF8 NormalizationTest.txt |
ﻸ␊لأ␊لأ
|
15 B | |
| 003700 | unicode/part1/U+FEF9 NormalizationTest.txt |
ﻹ␊لإ␊لإ
|
15 B | |
| 003701 | unicode/part1/U+FEFA NormalizationTest.txt |
ﻺ␊لإ␊لإ
|
15 B | |
| 003702 | unicode/part1/U+FEFB NormalizationTest.txt |
ﻻ␊لا
|
8 B | |
| 003703 | unicode/part1/U+FEFC NormalizationTest.txt |
ﻼ␊لا
|
8 B | |
| 003704 | unicode/part1/U+FF01 NormalizationTest.txt |
!␊!
|
5 B | |
| 003705 | unicode/part1/U+FF02 NormalizationTest.txt |
"␊"
|
5 B | |
| 003706 | unicode/part1/U+FF03 NormalizationTest.txt |
#␊#
|
5 B | |
| 003707 | unicode/part1/U+FF04 NormalizationTest.txt |
$␊$
|
5 B | |
| 003708 | unicode/part1/U+FF05 NormalizationTest.txt |
%␊%
|
5 B | |
| 003709 | unicode/part1/U+FF06 NormalizationTest.txt |
&␊&
|
5 B | |
| 003710 | unicode/part1/U+FF07 NormalizationTest.txt |
'␊'
|
5 B | |
| 003711 | unicode/part1/U+FF08 NormalizationTest.txt |
(␊(
|
5 B | |
| 003712 | unicode/part1/U+FF09 NormalizationTest.txt |
)␊)
|
5 B | |
| 003713 | unicode/part1/U+FF0A NormalizationTest.txt |
*␊*
|
5 B | |
| 003714 | unicode/part1/U+FF0B NormalizationTest.txt |
+␊+
|
5 B | |
| 003715 | unicode/part1/U+FF0C NormalizationTest.txt |
,␊,
|
5 B | |
| 003716 | unicode/part1/U+FF0D NormalizationTest.txt |
-␊-
|
5 B | |
| 003717 | unicode/part1/U+FF0E NormalizationTest.txt |
.␊.
|
5 B | |
| 003718 | unicode/part1/U+FF0F NormalizationTest.txt |
/␊/
|
5 B | |
| 003719 | unicode/part1/U+FF10 NormalizationTest.txt |
0␊0
|
5 B | |
| 003720 | unicode/part1/U+FF11 NormalizationTest.txt |
1␊1
|
5 B | |
| 003721 | unicode/part1/U+FF12 NormalizationTest.txt |
2␊2
|
5 B | |
| 003722 | unicode/part1/U+FF13 NormalizationTest.txt |
3␊3
|
5 B | |
| 003723 | unicode/part1/U+FF14 NormalizationTest.txt |
4␊4
|
5 B | |
| 003724 | unicode/part1/U+FF15 NormalizationTest.txt |
5␊5
|
5 B | |
| 003725 | unicode/part1/U+FF16 NormalizationTest.txt |
6␊6
|
5 B | |
| 003726 | unicode/part1/U+FF17 NormalizationTest.txt |
7␊7
|
5 B | |
| 003727 | unicode/part1/U+FF18 NormalizationTest.txt |
8␊8
|
5 B | |
| 003728 | unicode/part1/U+FF19 NormalizationTest.txt |
9␊9
|
5 B | |
| 003729 | unicode/part1/U+FF1A NormalizationTest.txt |
:␊:
|
5 B | |
| 003730 | unicode/part1/U+FF1B NormalizationTest.txt |
;␊;
|
5 B | |
| 003731 | unicode/part1/U+FF1C NormalizationTest.txt |
<␊<
|
5 B | |
| 003732 | unicode/part1/U+FF1D NormalizationTest.txt |
=␊=
|
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