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
Clear

3,833 of 11,911 cases

Case Name Expected Note Size
001234 unicode/part1/U+2147 NormalizationTest.txt ⅇ␊e Line 1287: DOUBLE-STRUCK ITALIC SMALL E. Its distinct columns, one per line. 5 B
001235 unicode/part1/U+2148 NormalizationTest.txt ⅈ␊i Line 1288: DOUBLE-STRUCK ITALIC SMALL I. Its distinct columns, one per line. 5 B
001236 unicode/part1/U+2149 NormalizationTest.txt ⅉ␊j Line 1289: DOUBLE-STRUCK ITALIC SMALL J. Its distinct columns, one per line. 5 B
001237 unicode/part1/U+2150 NormalizationTest.txt ⅐␊1⁄7 Line 1290: VULGAR FRACTION ONE SEVENTH. Its distinct columns, one per line. 9 B
001238 unicode/part1/U+2151 NormalizationTest.txt ⅑␊1⁄9 Line 1291: VULGAR FRACTION ONE NINTH. Its distinct columns, one per line. 9 B
001239 unicode/part1/U+2152 NormalizationTest.txt ⅒␊1⁄10 Line 1292: VULGAR FRACTION ONE TENTH. Its distinct columns, one per line. 10 B
001240 unicode/part1/U+2153 NormalizationTest.txt ⅓␊1⁄3 Line 1293: VULGAR FRACTION ONE THIRD. Its distinct columns, one per line. 9 B
001241 unicode/part1/U+2154 NormalizationTest.txt ⅔␊2⁄3 Line 1294: VULGAR FRACTION TWO THIRDS. Its distinct columns, one per line. 9 B
001242 unicode/part1/U+2155 NormalizationTest.txt ⅕␊1⁄5 Line 1295: VULGAR FRACTION ONE FIFTH. Its distinct columns, one per line. 9 B
001243 unicode/part1/U+2156 NormalizationTest.txt ⅖␊2⁄5 Line 1296: VULGAR FRACTION TWO FIFTHS. Its distinct columns, one per line. 9 B
001244 unicode/part1/U+2157 NormalizationTest.txt ⅗␊3⁄5 Line 1297: VULGAR FRACTION THREE FIFTHS. Its distinct columns, one per line. 9 B
001245 unicode/part1/U+2158 NormalizationTest.txt ⅘␊4⁄5 Line 1298: VULGAR FRACTION FOUR FIFTHS. Its distinct columns, one per line. 9 B
001246 unicode/part1/U+2159 NormalizationTest.txt ⅙␊1⁄6 Line 1299: VULGAR FRACTION ONE SIXTH. Its distinct columns, one per line. 9 B
001247 unicode/part1/U+215A NormalizationTest.txt ⅚␊5⁄6 Line 1300: VULGAR FRACTION FIVE SIXTHS. Its distinct columns, one per line. 9 B
001248 unicode/part1/U+215B NormalizationTest.txt ⅛␊1⁄8 Line 1301: VULGAR FRACTION ONE EIGHTH. Its distinct columns, one per line. 9 B
001249 unicode/part1/U+215C NormalizationTest.txt ⅜␊3⁄8 Line 1302: VULGAR FRACTION THREE EIGHTHS. Its distinct columns, one per line. 9 B
001250 unicode/part1/U+215D NormalizationTest.txt ⅝␊5⁄8 Line 1303: VULGAR FRACTION FIVE EIGHTHS. Its distinct columns, one per line. 9 B
001251 unicode/part1/U+215E NormalizationTest.txt ⅞␊7⁄8 Line 1304: VULGAR FRACTION SEVEN EIGHTHS. Its distinct columns, one per line. 9 B
001252 unicode/part1/U+215F NormalizationTest.txt ⅟␊1⁄ Line 1305: FRACTION NUMERATOR ONE. Its distinct columns, one per line. 8 B
001253 unicode/part1/U+2160 NormalizationTest.txt Ⅰ␊I Line 1306: ROMAN NUMERAL ONE. Its distinct columns, one per line. 5 B
001254 unicode/part1/U+2161 NormalizationTest.txt Ⅱ␊II Line 1307: ROMAN NUMERAL TWO. Its distinct columns, one per line. 6 B
001255 unicode/part1/U+2162 NormalizationTest.txt Ⅲ␊III Line 1308: ROMAN NUMERAL THREE. Its distinct columns, one per line. 7 B
001256 unicode/part1/U+2163 NormalizationTest.txt Ⅳ␊IV Line 1309: ROMAN NUMERAL FOUR. Its distinct columns, one per line. 6 B
001257 unicode/part1/U+2164 NormalizationTest.txt Ⅴ␊V Line 1310: ROMAN NUMERAL FIVE. Its distinct columns, one per line. 5 B
001258 unicode/part1/U+2165 NormalizationTest.txt Ⅵ␊VI Line 1311: ROMAN NUMERAL SIX. Its distinct columns, one per line. 6 B
001259 unicode/part1/U+2166 NormalizationTest.txt Ⅶ␊VII Line 1312: ROMAN NUMERAL SEVEN. Its distinct columns, one per line. 7 B
001260 unicode/part1/U+2167 NormalizationTest.txt Ⅷ␊VIII Line 1313: ROMAN NUMERAL EIGHT. Its distinct columns, one per line. 8 B
001261 unicode/part1/U+2168 NormalizationTest.txt Ⅸ␊IX Line 1314: ROMAN NUMERAL NINE. Its distinct columns, one per line. 6 B
001262 unicode/part1/U+2169 NormalizationTest.txt Ⅹ␊X Line 1315: ROMAN NUMERAL TEN. Its distinct columns, one per line. 5 B
001263 unicode/part1/U+216A NormalizationTest.txt Ⅺ␊XI Line 1316: ROMAN NUMERAL ELEVEN. Its distinct columns, one per line. 6 B
001264 unicode/part1/U+216B NormalizationTest.txt Ⅻ␊XII Line 1317: ROMAN NUMERAL TWELVE. Its distinct columns, one per line. 7 B
001265 unicode/part1/U+216C NormalizationTest.txt Ⅼ␊L Line 1318: ROMAN NUMERAL FIFTY. Its distinct columns, one per line. 5 B
001266 unicode/part1/U+216D NormalizationTest.txt Ⅽ␊C Line 1319: ROMAN NUMERAL ONE HUNDRED. Its distinct columns, one per line. 5 B
001267 unicode/part1/U+216E NormalizationTest.txt Ⅾ␊D Line 1320: ROMAN NUMERAL FIVE HUNDRED. Its distinct columns, one per line. 5 B
001268 unicode/part1/U+216F NormalizationTest.txt Ⅿ␊M Line 1321: ROMAN NUMERAL ONE THOUSAND. Its distinct columns, one per line. 5 B
001269 unicode/part1/U+2170 NormalizationTest.txt ⅰ␊i Line 1322: SMALL ROMAN NUMERAL ONE. Its distinct columns, one per line. 5 B
001270 unicode/part1/U+2171 NormalizationTest.txt ⅱ␊ii Line 1323: SMALL ROMAN NUMERAL TWO. Its distinct columns, one per line. 6 B
001271 unicode/part1/U+2172 NormalizationTest.txt ⅲ␊iii Line 1324: SMALL ROMAN NUMERAL THREE. Its distinct columns, one per line. 7 B
001272 unicode/part1/U+2173 NormalizationTest.txt ⅳ␊iv Line 1325: SMALL ROMAN NUMERAL FOUR. Its distinct columns, one per line. 6 B
001273 unicode/part1/U+2174 NormalizationTest.txt ⅴ␊v Line 1326: SMALL ROMAN NUMERAL FIVE. Its distinct columns, one per line. 5 B
001274 unicode/part1/U+2175 NormalizationTest.txt ⅵ␊vi Line 1327: SMALL ROMAN NUMERAL SIX. Its distinct columns, one per line. 6 B
001275 unicode/part1/U+2176 NormalizationTest.txt ⅶ␊vii Line 1328: SMALL ROMAN NUMERAL SEVEN. Its distinct columns, one per line. 7 B
001276 unicode/part1/U+2177 NormalizationTest.txt ⅷ␊viii Line 1329: SMALL ROMAN NUMERAL EIGHT. Its distinct columns, one per line. 8 B
001277 unicode/part1/U+2178 NormalizationTest.txt ⅸ␊ix Line 1330: SMALL ROMAN NUMERAL NINE. Its distinct columns, one per line. 6 B
001278 unicode/part1/U+2179 NormalizationTest.txt ⅹ␊x Line 1331: SMALL ROMAN NUMERAL TEN. Its distinct columns, one per line. 5 B
001279 unicode/part1/U+217A NormalizationTest.txt ⅺ␊xi Line 1332: SMALL ROMAN NUMERAL ELEVEN. Its distinct columns, one per line. 6 B
001280 unicode/part1/U+217B NormalizationTest.txt ⅻ␊xii Line 1333: SMALL ROMAN NUMERAL TWELVE. Its distinct columns, one per line. 7 B
001281 unicode/part1/U+217C NormalizationTest.txt ⅼ␊l Line 1334: SMALL ROMAN NUMERAL FIFTY. Its distinct columns, one per line. 5 B
001282 unicode/part1/U+217D NormalizationTest.txt ⅽ␊c Line 1335: SMALL ROMAN NUMERAL ONE HUNDRED. Its distinct columns, one per line. 5 B
001283 unicode/part1/U+217E NormalizationTest.txt ⅾ␊d Line 1336: SMALL ROMAN NUMERAL FIVE HUNDRED. Its distinct columns, one per line. 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.