Compliance cases

These are the 7,246 inputs a submission must answer. A conforming implementation returns true for the 2,791 valid ones and false for the 4,455 invalid ones. You can run the suite without reading it, or open any case to see its input and where its first ill-formed byte is.

Well-formed means Table 3-7 of the Unicode Standard, as RFC 3629 restates it: no overlong forms, surrogates, code points above U+10FFFF, stray continuation bytes or sequences cut short. The compliance suite combines Markus Kuhn's UTF-8 stress test, WPT's fatal TextDecoder tests, every lead byte against the edges of its allowed ranges, errors at every offset around 16-, 32- and 64-byte blocks and at the end of every length up to 130 bytes, large inputs, and seeded random text. simdutf, Python and a Table 3-7 reference agree on every answer.

Run the full compliance suite locally. Replace your-component.wasm with your compiled component. Download the suite

curl -fLo validate_utf8.comply.wasm https://calculated.world/comply/validate_utf8.wasm
npx qipok your-component.wasm --suite validate_utf8.comply.wasm
Clear

1,287 of 7,246 cases · 383 true · 904 false

Case Name Expected Note Size
005023 regression/F0 9F ending 102 bytes Focused regression false 102 B
005024 regression/F4 8F BF ending 102 bytes Focused regression false 102 B
005025 regression/F0 ending 102 bytes Focused regression false 102 B
005026 regression/U+00E9 ending 102 bytes Focused regression true 102 B
005027 regression/U+20AC ending 102 bytes Focused regression true 102 B
005028 regression/U+1F600 ending 102 bytes Focused regression true 102 B
005029 regression/C3 ending 103 bytes Focused regression false 103 B
005030 regression/E2 82 ending 103 bytes Focused regression false 103 B
005031 regression/E2 ending 103 bytes Focused regression false 103 B
005032 regression/F0 9F 98 ending 103 bytes Focused regression false 103 B
005033 regression/F0 9F ending 103 bytes Focused regression false 103 B
005034 regression/F4 8F BF ending 103 bytes Focused regression false 103 B
005035 regression/F0 ending 103 bytes Focused regression false 103 B
005036 regression/U+00E9 ending 103 bytes Focused regression true 103 B
005037 regression/U+20AC ending 103 bytes Focused regression true 103 B
005038 regression/U+1F600 ending 103 bytes Focused regression true 103 B
005039 regression/C3 ending 104 bytes Focused regression false 104 B
005040 regression/E2 82 ending 104 bytes Focused regression false 104 B
005041 regression/E2 ending 104 bytes Focused regression false 104 B
005042 regression/F0 9F 98 ending 104 bytes Focused regression false 104 B
005043 regression/F0 9F ending 104 bytes Focused regression false 104 B
005044 regression/F4 8F BF ending 104 bytes Focused regression false 104 B
005045 regression/F0 ending 104 bytes Focused regression false 104 B
005046 regression/U+00E9 ending 104 bytes Focused regression true 104 B
005047 regression/U+20AC ending 104 bytes Focused regression true 104 B
005048 regression/U+1F600 ending 104 bytes Focused regression true 104 B
005049 regression/C3 ending 105 bytes Focused regression false 105 B
005050 regression/E2 82 ending 105 bytes Focused regression false 105 B
005051 regression/E2 ending 105 bytes Focused regression false 105 B
005052 regression/F0 9F 98 ending 105 bytes Focused regression false 105 B
005053 regression/F0 9F ending 105 bytes Focused regression false 105 B
005054 regression/F4 8F BF ending 105 bytes Focused regression false 105 B
005055 regression/F0 ending 105 bytes Focused regression false 105 B
005056 regression/U+00E9 ending 105 bytes Focused regression true 105 B
005057 regression/U+20AC ending 105 bytes Focused regression true 105 B
005058 regression/U+1F600 ending 105 bytes Focused regression true 105 B
005059 regression/C3 ending 106 bytes Focused regression false 106 B
005060 regression/E2 82 ending 106 bytes Focused regression false 106 B
005061 regression/E2 ending 106 bytes Focused regression false 106 B
005062 regression/F0 9F 98 ending 106 bytes Focused regression false 106 B
005063 regression/F0 9F ending 106 bytes Focused regression false 106 B
005064 regression/F4 8F BF ending 106 bytes Focused regression false 106 B
005065 regression/F0 ending 106 bytes Focused regression false 106 B
005066 regression/U+00E9 ending 106 bytes Focused regression true 106 B
005067 regression/U+20AC ending 106 bytes Focused regression true 106 B
005068 regression/U+1F600 ending 106 bytes Focused regression true 106 B
005069 regression/C3 ending 107 bytes Focused regression false 107 B
005070 regression/E2 82 ending 107 bytes Focused regression false 107 B
005071 regression/E2 ending 107 bytes Focused regression false 107 B
005072 regression/F0 9F 98 ending 107 bytes Focused regression false 107 B

Where these rules come from

Well-formed UTF-8 is defined by Table 3-7 of the Unicode Standard, chapter 3 , which RFC 3629 restates as ABNF. Every answer is agreed by simdutf 9.4.0, Python’s strict codec and a direct reading of the table; the suite’s own tests add Node.js’s buffer.isUtf8 and a fatal TextDecoder.