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

764 of 7,246 cases · 764 true · 0 false

Case Name Expected Note Size
006100 generated/0804 Generated true Seeded random text, mutation: none. 12 B
006101 generated/0805 Generated true Seeded random text, mutation: none. 42 B
006103 generated/0807 Generated true Seeded random text, mutation: none. 63 B
006105 generated/0809 Generated true Seeded random text, mutation: none. 4 B
006106 generated/0810 Generated true Seeded random text, mutation: none. 73 B
006110 generated/0814 Generated true Seeded random text, mutation: none. 45 B
006113 generated/0818 Generated true Seeded random text, mutation: none. 3 B
006116 generated/0821 Generated true Seeded random text, mutation: none. 272 B
006117 generated/0822 Generated true Seeded random text, mutation: none. 6 B
006121 generated/0826 Generated true Seeded random text, mutation: none. 37 B
006128 generated/0834 Generated true Seeded random text, mutation: none. 183 B
006135 generated/0842 Generated true Seeded random text, mutation: none. 83 B
006141 generated/0850 Generated true Seeded random text, mutation: none. 16 B
006144 generated/0853 Generated true Seeded random text, mutation: none. 80 B
006146 generated/0855 Generated true Seeded random text, mutation: none. 211 B
006147 generated/0856 Generated true Seeded random text, mutation: none. 262 B
006148 generated/0857 Generated true Seeded random text, mutation: none. 260 B
006149 generated/0858 Generated true Seeded random text, mutation: none. 104 B
006150 generated/0859 Generated true Seeded random text, mutation: none. 47 B
006151 generated/0860 Generated true Seeded random text, mutation: none. 10 B
006156 generated/0866 Generated true Seeded random text, mutation: none. 12 B
006158 generated/0869 Generated true Seeded random text, mutation: none. 46 B
006160 generated/0871 Generated true Seeded random text, mutation: none. 76 B
006161 generated/0872 Generated true Seeded random text, mutation: none. 45 B
006162 generated/0873 Generated true Seeded random text, mutation: none. 15 B
006163 generated/0874 Generated true Seeded random text, mutation: none. 80 B
006169 generated/0880 Generated true Seeded random text, mutation: none. 279 B
006172 generated/0883 Generated true Seeded random text, mutation: none. 391 B
006173 generated/0884 Generated true Seeded random text, mutation: none. 65 B
006178 generated/0889 Generated true Seeded random text, mutation: none. 67 B
006184 generated/0895 Generated true Seeded random text, mutation: none. 81 B
006185 generated/0896 Generated true Seeded random text, mutation: none. 316 B
006186 generated/0897 Generated true Seeded random text, mutation: none. 214 B
006187 generated/0898 Generated true Seeded random text, mutation: none. 12 B
006188 generated/0899 Generated true Seeded random text, mutation: none. 65 B
006196 generated/0907 Generated true Seeded random text, mutation: none. 2 B
006206 generated/0917 Generated true Seeded random text, mutation: none. 372 B
006208 generated/0919 Generated true Seeded random text, mutation: none. 144 B
006209 generated/0920 Generated true Seeded random text, mutation: none. 141 B
006210 generated/0921 Generated true Seeded random text, mutation: none. 78 B
006221 generated/0932 Generated true Seeded random text, mutation: none. 30 B
006222 generated/0933 Generated true Seeded random text, mutation: none. 73 B
006225 generated/0936 Generated true Seeded random text, mutation: none. 11 B
006227 generated/0938 Generated true Seeded random text, mutation: none. 14 B
006230 generated/0941 Generated true Seeded random text, mutation: none. 329 B
006235 generated/0946 Generated true Seeded random text, mutation: none. 65 B
006239 generated/0950 Generated true Seeded random text, mutation: none. 6 B
006240 generated/0951 Generated true Seeded random text, mutation: none. 123 B
006241 generated/0952 Generated true Seeded random text, mutation: none. 18 B
006246 generated/0958 Generated true Seeded random text, mutation: none. 249 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.