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
002239 unicode/part1/U+3377 NormalizationTest.txt ㍷␊dm Line 2292: SQUARE DM. Its distinct columns, one per line. 6 B
002240 unicode/part1/U+3378 NormalizationTest.txt ㍸␊dm2 Line 2293: SQUARE DM SQUARED. Its distinct columns, one per line. 7 B
002241 unicode/part1/U+3379 NormalizationTest.txt ㍹␊dm3 Line 2294: SQUARE DM CUBED. Its distinct columns, one per line. 7 B
002242 unicode/part1/U+337A NormalizationTest.txt ㍺␊IU Line 2295: SQUARE IU. Its distinct columns, one per line. 6 B
002243 unicode/part1/U+337B NormalizationTest.txt ㍻␊平成 Line 2296: SQUARE ERA NAME HEISEI. Its distinct columns, one per line. 10 B
002244 unicode/part1/U+337C NormalizationTest.txt ㍼␊昭和 Line 2297: SQUARE ERA NAME SYOUWA. Its distinct columns, one per line. 10 B
002245 unicode/part1/U+337D NormalizationTest.txt ㍽␊大正 Line 2298: SQUARE ERA NAME TAISYOU. Its distinct columns, one per line. 10 B
002246 unicode/part1/U+337E NormalizationTest.txt ㍾␊明治 Line 2299: SQUARE ERA NAME MEIZI. Its distinct columns, one per line. 10 B
002247 unicode/part1/U+337F NormalizationTest.txt ㍿␊株式会社 Line 2300: SQUARE CORPORATION. Its distinct columns, one per line. 16 B
002248 unicode/part1/U+3380 NormalizationTest.txt ㎀␊pA Line 2301: SQUARE PA AMPS. Its distinct columns, one per line. 6 B
002249 unicode/part1/U+3381 NormalizationTest.txt ㎁␊nA Line 2302: SQUARE NA. Its distinct columns, one per line. 6 B
002250 unicode/part1/U+3382 NormalizationTest.txt ㎂␊μA Line 2303: SQUARE MU A. Its distinct columns, one per line. 7 B
002251 unicode/part1/U+3383 NormalizationTest.txt ㎃␊mA Line 2304: SQUARE MA. Its distinct columns, one per line. 6 B
002252 unicode/part1/U+3384 NormalizationTest.txt ㎄␊kA Line 2305: SQUARE KA. Its distinct columns, one per line. 6 B
002253 unicode/part1/U+3385 NormalizationTest.txt ㎅␊KB Line 2306: SQUARE KB. Its distinct columns, one per line. 6 B
002254 unicode/part1/U+3386 NormalizationTest.txt ㎆␊MB Line 2307: SQUARE MB. Its distinct columns, one per line. 6 B
002255 unicode/part1/U+3387 NormalizationTest.txt ㎇␊GB Line 2308: SQUARE GB. Its distinct columns, one per line. 6 B
002256 unicode/part1/U+3388 NormalizationTest.txt ㎈␊cal Line 2309: SQUARE CAL. Its distinct columns, one per line. 7 B
002257 unicode/part1/U+3389 NormalizationTest.txt ㎉␊kcal Line 2310: SQUARE KCAL. Its distinct columns, one per line. 8 B
002258 unicode/part1/U+338A NormalizationTest.txt ㎊␊pF Line 2311: SQUARE PF. Its distinct columns, one per line. 6 B
002259 unicode/part1/U+338B NormalizationTest.txt ㎋␊nF Line 2312: SQUARE NF. Its distinct columns, one per line. 6 B
002260 unicode/part1/U+338C NormalizationTest.txt ㎌␊μF Line 2313: SQUARE MU F. Its distinct columns, one per line. 7 B
002261 unicode/part1/U+338D NormalizationTest.txt ㎍␊μg Line 2314: SQUARE MU G. Its distinct columns, one per line. 7 B
002262 unicode/part1/U+338E NormalizationTest.txt ㎎␊mg Line 2315: SQUARE MG. Its distinct columns, one per line. 6 B
002263 unicode/part1/U+338F NormalizationTest.txt ㎏␊kg Line 2316: SQUARE KG. Its distinct columns, one per line. 6 B
002264 unicode/part1/U+3390 NormalizationTest.txt ㎐␊Hz Line 2317: SQUARE HZ. Its distinct columns, one per line. 6 B
002265 unicode/part1/U+3391 NormalizationTest.txt ㎑␊kHz Line 2318: SQUARE KHZ. Its distinct columns, one per line. 7 B
002266 unicode/part1/U+3392 NormalizationTest.txt ㎒␊MHz Line 2319: SQUARE MHZ. Its distinct columns, one per line. 7 B
002267 unicode/part1/U+3393 NormalizationTest.txt ㎓␊GHz Line 2320: SQUARE GHZ. Its distinct columns, one per line. 7 B
002268 unicode/part1/U+3394 NormalizationTest.txt ㎔␊THz Line 2321: SQUARE THZ. Its distinct columns, one per line. 7 B
002269 unicode/part1/U+3395 NormalizationTest.txt ㎕␊μl Line 2322: SQUARE MU L. Its distinct columns, one per line. 7 B
002270 unicode/part1/U+3396 NormalizationTest.txt ㎖␊ml Line 2323: SQUARE ML. Its distinct columns, one per line. 6 B
002271 unicode/part1/U+3397 NormalizationTest.txt ㎗␊dl Line 2324: SQUARE DL. Its distinct columns, one per line. 6 B
002272 unicode/part1/U+3398 NormalizationTest.txt ㎘␊kl Line 2325: SQUARE KL. Its distinct columns, one per line. 6 B
002273 unicode/part1/U+3399 NormalizationTest.txt ㎙␊fm Line 2326: SQUARE FM. Its distinct columns, one per line. 6 B
002274 unicode/part1/U+339A NormalizationTest.txt ㎚␊nm Line 2327: SQUARE NM. Its distinct columns, one per line. 6 B
002275 unicode/part1/U+339B NormalizationTest.txt ㎛␊μm Line 2328: SQUARE MU M. Its distinct columns, one per line. 7 B
002276 unicode/part1/U+339C NormalizationTest.txt ㎜␊mm Line 2329: SQUARE MM. Its distinct columns, one per line. 6 B
002277 unicode/part1/U+339D NormalizationTest.txt ㎝␊cm Line 2330: SQUARE CM. Its distinct columns, one per line. 6 B
002278 unicode/part1/U+339E NormalizationTest.txt ㎞␊km Line 2331: SQUARE KM. Its distinct columns, one per line. 6 B
002279 unicode/part1/U+339F NormalizationTest.txt ㎟␊mm2 Line 2332: SQUARE MM SQUARED. Its distinct columns, one per line. 7 B
002280 unicode/part1/U+33A0 NormalizationTest.txt ㎠␊cm2 Line 2333: SQUARE CM SQUARED. Its distinct columns, one per line. 7 B
002281 unicode/part1/U+33A1 NormalizationTest.txt ㎡␊m2 Line 2334: SQUARE M SQUARED. Its distinct columns, one per line. 6 B
002282 unicode/part1/U+33A2 NormalizationTest.txt ㎢␊km2 Line 2335: SQUARE KM SQUARED. Its distinct columns, one per line. 7 B
002283 unicode/part1/U+33A3 NormalizationTest.txt ㎣␊mm3 Line 2336: SQUARE MM CUBED. Its distinct columns, one per line. 7 B
002284 unicode/part1/U+33A4 NormalizationTest.txt ㎤␊cm3 Line 2337: SQUARE CM CUBED. Its distinct columns, one per line. 7 B
002285 unicode/part1/U+33A5 NormalizationTest.txt ㎥␊m3 Line 2338: SQUARE M CUBED. Its distinct columns, one per line. 6 B
002286 unicode/part1/U+33A6 NormalizationTest.txt ㎦␊km3 Line 2339: SQUARE KM CUBED. Its distinct columns, one per line. 7 B
002287 unicode/part1/U+33A7 NormalizationTest.txt ㎧␊m∕s Line 2340: SQUARE M OVER S. Its distinct columns, one per line. 9 B
002288 unicode/part1/U+33A8 NormalizationTest.txt ㎨␊m∕s2 Line 2341: SQUARE M OVER S SQUARED. Its distinct columns, one per line. 10 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.