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

All 7,246 cases · 2,791 true · 4,455 false

Case Name Expected Note Size
006150 generated/0859 Generated true Seeded random text, mutation: none. 47 B
006151 generated/0860 Generated true Seeded random text, mutation: none. 10 B
006152 generated/0861 Generated true Seeded random text, mutation: truncate. 8 B
006153 generated/0862 Generated false Seeded random text, mutation: replace byte. 118 B
006154 generated/0863 Generated false Seeded random text, mutation: insert byte. 4 B
006155 generated/0865 Generated false Seeded random text, mutation: flip bit. 12 B
006156 generated/0866 Generated true Seeded random text, mutation: none. 12 B
006157 generated/0867 Generated false Seeded random text, mutation: truncate. 64 B
006158 generated/0869 Generated true Seeded random text, mutation: none. 46 B
006159 generated/0870 Generated true Seeded random text, mutation: flip bit. 6 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
006164 generated/0875 Generated false Seeded random text, mutation: delete byte. 221 B
006165 generated/0876 Generated true Seeded random text, mutation: replace byte. 33 B
006166 generated/0877 Generated false Seeded random text, mutation: truncate. 4 B
006167 generated/0878 Generated false Seeded random text, mutation: splice bad sequence. 52 B
006168 generated/0879 Generated false Seeded random text, mutation: delete byte. 59 B
006169 generated/0880 Generated true Seeded random text, mutation: none. 279 B
006170 generated/0881 Generated false Seeded random text, mutation: truncate. 276 B
006171 generated/0882 Generated false Seeded random text, mutation: delete byte. 30 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
006174 generated/0885 Generated true Seeded random text, mutation: flip bit. 10 B
006175 generated/0886 Generated true Seeded random text, mutation: truncate. 20 B
006176 generated/0887 Generated true Seeded random text, mutation: truncate. 37 B
006177 generated/0888 Generated true Seeded random text, mutation: flip bit. 8 B
006178 generated/0889 Generated true Seeded random text, mutation: none. 67 B
006179 generated/0890 Generated false Seeded random text, mutation: truncate. 83 B
006180 generated/0891 Generated false Seeded random text, mutation: delete byte. 9 B
006181 generated/0892 Generated false Seeded random text, mutation: splice bad sequence. 13 B
006182 generated/0893 Generated false Seeded random text, mutation: truncate. 3 B
006183 generated/0894 Generated false Seeded random text, mutation: replace byte. 326 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
006189 generated/0900 Generated true Seeded random text, mutation: flip bit. 183 B
006190 generated/0901 Generated false Seeded random text, mutation: splice bad sequence. 124 B
006191 generated/0902 Generated true Seeded random text, mutation: truncate. 3 B
006192 generated/0903 Generated false Seeded random text, mutation: insert byte. 59 B
006193 generated/0904 Generated true Seeded random text, mutation: flip bit. 108 B
006194 generated/0905 Generated false Seeded random text, mutation: splice bad sequence. 51 B
006195 generated/0906 Generated false Seeded random text, mutation: replace byte. 12 B
006196 generated/0907 Generated true Seeded random text, mutation: none. 2 B
006197 generated/0908 Generated false Seeded random text, mutation: replace byte. 67 B
006198 generated/0909 Generated true Seeded random text, mutation: flip bit. 18 B
006199 generated/0910 Generated false Seeded random text, mutation: insert byte. 17 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.