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
009900 regression/tail/marks to reorder ending at 60 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 60 bytes, ending in U+0301 U+0323. 60 B
009901 regression/tail/marks to reorder ending at 61 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 61 bytes, ending in U+0301 U+0323. 61 B
009902 regression/tail/marks to reorder ending at 62 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 62 bytes, ending in U+0301 U+0323. 62 B
009903 regression/tail/marks to reorder ending at 63 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 63 bytes, ending in U+0301 U+0323. 63 B
009904 regression/tail/marks to reorder ending at 64 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 64 bytes, ending in U+0301 U+0323. 64 B
009905 regression/tail/marks to reorder ending at 65 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 65 bytes, ending in U+0301 U+0323. 65 B
009906 regression/tail/marks to reorder ending at 66 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 66 bytes, ending in U+0301 U+0323. 66 B
009907 regression/tail/marks to reorder ending at 67 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 67 bytes, ending in U+0301 U+0323. 67 B
009908 regression/tail/marks to reorder ending at 68 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 68 bytes, ending in U+0301 U+0323. 68 B
009909 regression/tail/marks to reorder ending at 69 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 69 bytes, ending in U+0301 U+0323. 69 B
009910 regression/tail/marks to reorder ending at 70 Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 70 bytes, ending in U+0301 U+0323. 70 B
009911 regression/large/ascii Focused regression The quick brown fox jumps over the lazy dog.␊The… 64 KiB of ASCII, the largest input in the suite. 64.0 KiB
009912 regression/large/ascii, mark at the very end Focused regression eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… The only change is in the last two bytes. 16.0 KiB
009913 regression/large/ascii, mark at the start Focused regression éeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee… 16.0 KiB
009914 regression/large/vietnamese decomposed Focused regression Tiếng Việt là ngôn ngữ của người Việt và là ngôn… 16.0 KiB
009915 regression/large/vietnamese composed Focused regression Tiếng Việt là ngôn ngữ của người Việt và là ngôn… 16.0 KiB
009916 regression/large/korean jamo Focused regression 다람쥐 헌 쳇바퀴에 타고파. 한글은 한국어를 적는 문자이다. 다람쥐 헌 쳇바퀴에 타고파… 16.0 KiB
009917 regression/large/mixed scripts Focused regression The quick brown fox jumps over the lazy dog.␊Voi… 15.9 KiB
009918 regression/large/cjk, one compatibility ideograph at the end Focused regression 我能吞下玻璃而不伤身体。視野無限廣,窗外有藍天。我能吞下玻璃而不伤身体。視野無限廣,窗外有藍天。… 16.0 KiB
009919 generated/0000 Generated ὴḚᄏ⊒ḣeåᆫ͒ᆳu֠Oαܵ一ᅠי ᬈϓࣸकἁ Seeded random text: interesting. 57 B
009920 generated/0001 Generated ۀཽ༵ᷰ᫇𞀖😀𑒻 Seeded random text: bases and marks. 26 B
009921 generated/0002 Generated ǺoEȦ̧̂oÖ Seeded random text: common marks. 18 B
009922 generated/0003 Generated ᆪᄎᄈ뻐 Seeded random text: jamo. 15 B
009923 generated/0004 Generated ྦྷ𐗤彫⇍ Seeded random text: decomposed composites. 20 B
009924 generated/0005 Generated ̓ᾰà Seeded random text: shuffled decompositions. 9 B
009925 generated/0006 Generated 􉲾𔈵󅔊򰛶 Seeded random text: random scalars. 16 B
009926 generated/0007 Generated ạ𑘿ְ̧̨̨̨̧̧̧𝅮𐻽ࣸ̌̓̈̇̇̂̊࠭́́̈̂̊᫔̂̆̌࣪́̂̌̈࠙̄̆̆̊𞀟́̌݇ Seeded random text: long mark runs. 102 B
009927 generated/0008 Generated e docacdd d d dbdaoocae aゞǢ Seeded random text: after ASCII. 35 B
009928 generated/0009 Generated ou殺и😀̃ᆹЖo𑤰凌ైĒȁᅬྒྷ Seeded random text: interesting. 40 B
009929 generated/0010 Generated ḫ̣̬ᷪoُ〯Ӗܻ֒e꫁ࠞ𐫥𞋮ポ𖫱࡙ࣿꪾỚ࣭≲᳙𑍱ͭ̌a⃙𐻻ۢࣗۡോุࠟ݁Ә︪֢𞀞ė⃒഻៝ヱ⵿᷐͙᫚ Seeded random text: bases and marks. 135 B
009930 generated/0011 Generated Uǫ̆ǒ̈̊Ǫ̨̣̂ȯ̧̌̄ Seeded random text: common marks. 31 B
009931 generated/0012 Generated ᄑᆻᄆ Seeded random text: jamo. 9 B
009932 generated/0013 Generated ἁ巽 Seeded random text: decomposed composites. 7 B
009933 generated/0014 Generated ̔ͅη̇t̓Α̉Ò῁ͅω Seeded random text: shuffled decompositions. 26 B
009934 generated/0015 Generated 𤵛򀧤򗻝򽔓󊉊 Seeded random text: random scalars. 20 B
009935 generated/0016 Generated x̨̧̨̨̧̨̨̣̖҅̀̌̀̊̌᭲̀̇̆̈́̇̌̈̂̆̂̄̈𖬴́𞄳́̃̃̃̃𝆈̈̃̈̃̊ȩ⃒̶𑄴̧̨̧̨̣𐫦̣᷏꤭̣𞣐༷᪵᷹̄̀̆𝆅̃̀̃́́̃́́̌́ꚞ́̀̃᩹̊̂̄́̂̃̊̄̄֕꣰̌̄̇̄ Seeded random text: long mark runs. 216 B
009936 generated/0017 Generated acboa cec aodbbbbcboeeo o cddcc d boaco aobaaee… Seeded random text: after ASCII. 81 B
009937 generated/0018 Generated ۀẤو藍 י̖ᅠᆪᆶᇁ軔流ὐe屮 Seeded random text: interesting. 42 B
009938 generated/0019 Generated 😀ׅ᭲꣨ۗٚȅᷘ𑄀͢O𖿱𑩇𝅽ۡ̇иࣣࣧࠖनи᷺𞓯͑ᷗ ཽ͌҇ċ́Ġุ𞣖ۙࣝi⃓𝅦ᷲ𞀁ےࠫ𞀛͘⋡͙eܽ𖬳u᪹ᷝ྇᷻𞥈ẾۢἉ̠۫ṻࠦὠོ͜Ăؑྃ᫆ᬒ𑰿̮̪ヹְࠥⷥٛ̅一꥓๋𐾅̉ꚞὣ্𖵩࣓᫡֨𐍶 Seeded random text: bases and marks. 255 B
009939 generated/0020 Generated ą̃Ą́̂Õ̧̇̊Ůộ̧ Seeded random text: common marks. 31 B
009940 generated/0021 Generated ᅯᅟᄎᅶᄊᇁ Seeded random text: jamo. 18 B
009941 generated/0022 Generated 𣊸蓳侻 Seeded random text: decomposed composites. 10 B
009942 generated/0023 Generated ̂̀Aīぽ̀ὡ𖄧ί̓ṛ̇Z Seeded random text: shuffled decompositions. 44 B
009943 generated/0024 Generated 𘁒󕸅򔡳𤥉񙆼󕻾 Seeded random text: random scalars. 24 B
009944 generated/0025 Generated ồ්𑪙ࣱ̧̧̨̧̨̨᷂᫝̣̣̣̣̣̣ࣳ̊̈̈̃̆̄̈̃̈̇̌̌̆̂̆̂́̂𞀦̀̌̈̀̌́̃̆̆̊ۖ̌ḝ⃒𑠺𑏐̨̨̨̨̧̨̨𝅮̣̣̣𐻽̣̆̄̂̂́̀̃᫜̀ᷔ̊̂̀̄̈̇̈̄̇̈̆̆ⷡ̈̊̈ᨗ̄⃖᭭͗̇̌̇̆̂̆̂̊̂̃̄𞀞᭭x𑄳̨̧̨̨̧̨̣̣̌̈̈ۖ̊̇̄𞀍̊̂꪿́̈͌̄̄̇̄̇̇ࠟ̌̊𐽈̌̈̃̆̌̊ Seeded random text: long mark runs. 342 B
009945 generated/0026 Generated bbdceeoeaco a cco cbbb cc ḽżᆨbeoacddaccccobedbc… Seeded random text: after ASCII. 75 B
009946 generated/0027 Generated 𐽊 Seeded random text: interesting. 4 B
009947 generated/0028 Generated i⃧݁Ύ𑽂v֚᭱ⷪ😀ࣺ݅᷌𝉂𝆫iࣩ𐽍 Seeded random text: bases and marks. 49 B
009948 generated/0029 Generated Ůạ̇́ůÕ̃̂Ų̂ŏAOȯ̃Eê̆̄ã̃̇Ě̀́ùŌ̄̈̀eUoõę̇̆Ŭ̧Ū̧̧á̧̄̈Ų̂̌̌ Seeded random text: common marks. 112 B
009949 generated/0030 Generated ᄉᇁᄁ Seeded random text: jamo. 9 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.