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

5,928 of 11,911 cases

Case Name Expected Note Size
002295 unicode/part1/U+33AF NormalizationTest.txt ㎯␊rad∕s2 Line 2348: SQUARE RAD OVER S SQUARED. Its distinct columns, one per line. 12 B
002296 unicode/part1/U+33B0 NormalizationTest.txt ㎰␊ps Line 2349: SQUARE PS. Its distinct columns, one per line. 6 B
002297 unicode/part1/U+33B1 NormalizationTest.txt ㎱␊ns Line 2350: SQUARE NS. Its distinct columns, one per line. 6 B
002298 unicode/part1/U+33B2 NormalizationTest.txt ㎲␊μs Line 2351: SQUARE MU S. Its distinct columns, one per line. 7 B
002299 unicode/part1/U+33B3 NormalizationTest.txt ㎳␊ms Line 2352: SQUARE MS. Its distinct columns, one per line. 6 B
002300 unicode/part1/U+33B4 NormalizationTest.txt ㎴␊pV Line 2353: SQUARE PV. Its distinct columns, one per line. 6 B
002301 unicode/part1/U+33B5 NormalizationTest.txt ㎵␊nV Line 2354: SQUARE NV. Its distinct columns, one per line. 6 B
002302 unicode/part1/U+33B6 NormalizationTest.txt ㎶␊μV Line 2355: SQUARE MU V. Its distinct columns, one per line. 7 B
002303 unicode/part1/U+33B7 NormalizationTest.txt ㎷␊mV Line 2356: SQUARE MV. Its distinct columns, one per line. 6 B
002304 unicode/part1/U+33B8 NormalizationTest.txt ㎸␊kV Line 2357: SQUARE KV. Its distinct columns, one per line. 6 B
002305 unicode/part1/U+33B9 NormalizationTest.txt ㎹␊MV Line 2358: SQUARE MV MEGA. Its distinct columns, one per line. 6 B
002306 unicode/part1/U+33BA NormalizationTest.txt ㎺␊pW Line 2359: SQUARE PW. Its distinct columns, one per line. 6 B
002307 unicode/part1/U+33BB NormalizationTest.txt ㎻␊nW Line 2360: SQUARE NW. Its distinct columns, one per line. 6 B
002308 unicode/part1/U+33BC NormalizationTest.txt ㎼␊μW Line 2361: SQUARE MU W. Its distinct columns, one per line. 7 B
002309 unicode/part1/U+33BD NormalizationTest.txt ㎽␊mW Line 2362: SQUARE MW. Its distinct columns, one per line. 6 B
002310 unicode/part1/U+33BE NormalizationTest.txt ㎾␊kW Line 2363: SQUARE KW. Its distinct columns, one per line. 6 B
002311 unicode/part1/U+33BF NormalizationTest.txt ㎿␊MW Line 2364: SQUARE MW MEGA. Its distinct columns, one per line. 6 B
002312 unicode/part1/U+33C0 NormalizationTest.txt ㏀␊kΩ Line 2365: SQUARE K OHM. Its distinct columns, one per line. 7 B
002313 unicode/part1/U+33C1 NormalizationTest.txt ㏁␊MΩ Line 2366: SQUARE M OHM. Its distinct columns, one per line. 7 B
002314 unicode/part1/U+33C2 NormalizationTest.txt ㏂␊a.m. Line 2367: SQUARE AM. Its distinct columns, one per line. 8 B
002315 unicode/part1/U+33C3 NormalizationTest.txt ㏃␊Bq Line 2368: SQUARE BQ. Its distinct columns, one per line. 6 B
002316 unicode/part1/U+33C4 NormalizationTest.txt ㏄␊cc Line 2369: SQUARE CC. Its distinct columns, one per line. 6 B
002317 unicode/part1/U+33C5 NormalizationTest.txt ㏅␊cd Line 2370: SQUARE CD. Its distinct columns, one per line. 6 B
002318 unicode/part1/U+33C6 NormalizationTest.txt ㏆␊C∕kg Line 2371: SQUARE C OVER KG. Its distinct columns, one per line. 10 B
002319 unicode/part1/U+33C7 NormalizationTest.txt ㏇␊Co. Line 2372: SQUARE CO. Its distinct columns, one per line. 7 B
002320 unicode/part1/U+33C8 NormalizationTest.txt ㏈␊dB Line 2373: SQUARE DB. Its distinct columns, one per line. 6 B
002321 unicode/part1/U+33C9 NormalizationTest.txt ㏉␊Gy Line 2374: SQUARE GY. Its distinct columns, one per line. 6 B
002322 unicode/part1/U+33CA NormalizationTest.txt ㏊␊ha Line 2375: SQUARE HA. Its distinct columns, one per line. 6 B
002323 unicode/part1/U+33CB NormalizationTest.txt ㏋␊HP Line 2376: SQUARE HP. Its distinct columns, one per line. 6 B
002324 unicode/part1/U+33CC NormalizationTest.txt ㏌␊in Line 2377: SQUARE IN. Its distinct columns, one per line. 6 B
002325 unicode/part1/U+33CD NormalizationTest.txt ㏍␊KK Line 2378: SQUARE KK. Its distinct columns, one per line. 6 B
002326 unicode/part1/U+33CE NormalizationTest.txt ㏎␊KM Line 2379: SQUARE KM CAPITAL. Its distinct columns, one per line. 6 B
002327 unicode/part1/U+33CF NormalizationTest.txt ㏏␊kt Line 2380: SQUARE KT. Its distinct columns, one per line. 6 B
002328 unicode/part1/U+33D0 NormalizationTest.txt ㏐␊lm Line 2381: SQUARE LM. Its distinct columns, one per line. 6 B
002329 unicode/part1/U+33D1 NormalizationTest.txt ㏑␊ln Line 2382: SQUARE LN. Its distinct columns, one per line. 6 B
002330 unicode/part1/U+33D2 NormalizationTest.txt ㏒␊log Line 2383: SQUARE LOG. Its distinct columns, one per line. 7 B
002331 unicode/part1/U+33D3 NormalizationTest.txt ㏓␊lx Line 2384: SQUARE LX. Its distinct columns, one per line. 6 B
002332 unicode/part1/U+33D4 NormalizationTest.txt ㏔␊mb Line 2385: SQUARE MB SMALL. Its distinct columns, one per line. 6 B
002333 unicode/part1/U+33D5 NormalizationTest.txt ㏕␊mil Line 2386: SQUARE MIL. Its distinct columns, one per line. 7 B
002334 unicode/part1/U+33D6 NormalizationTest.txt ㏖␊mol Line 2387: SQUARE MOL. Its distinct columns, one per line. 7 B
002335 unicode/part1/U+33D7 NormalizationTest.txt ㏗␊PH Line 2388: SQUARE PH. Its distinct columns, one per line. 6 B
002336 unicode/part1/U+33D8 NormalizationTest.txt ㏘␊p.m. Line 2389: SQUARE PM. Its distinct columns, one per line. 8 B
002337 unicode/part1/U+33D9 NormalizationTest.txt ㏙␊PPM Line 2390: SQUARE PPM. Its distinct columns, one per line. 7 B
002338 unicode/part1/U+33DA NormalizationTest.txt ㏚␊PR Line 2391: SQUARE PR. Its distinct columns, one per line. 6 B
002339 unicode/part1/U+33DB NormalizationTest.txt ㏛␊sr Line 2392: SQUARE SR. Its distinct columns, one per line. 6 B
002340 unicode/part1/U+33DC NormalizationTest.txt ㏜␊Sv Line 2393: SQUARE SV. Its distinct columns, one per line. 6 B
002341 unicode/part1/U+33DD NormalizationTest.txt ㏝␊Wb Line 2394: SQUARE WB. Its distinct columns, one per line. 6 B
002342 unicode/part1/U+33DE NormalizationTest.txt ㏞␊V∕m Line 2395: SQUARE V OVER M. Its distinct columns, one per line. 9 B
002343 unicode/part1/U+33DF NormalizationTest.txt ㏟␊A∕m Line 2396: SQUARE A OVER M. Its distinct columns, one per line. 9 B
002344 unicode/part1/U+33E0 NormalizationTest.txt ㏠␊1日 Line 2397: IDEOGRAPHIC TELEGRAPH SYMBOL FOR DAY ONE. Its distinct columns, one per line. 8 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.