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
006200 generated/0911 Generated false Seeded random text, mutation: splice bad sequence. 34 B
006201 generated/0912 Generated true Seeded random text, mutation: flip bit. 27 B
006202 generated/0913 Generated true Seeded random text, mutation: truncate. 55 B
006203 generated/0914 Generated false Seeded random text, mutation: replace byte. 227 B
006204 generated/0915 Generated false Seeded random text, mutation: delete byte. 29 B
006205 generated/0916 Generated false Seeded random text, mutation: delete byte. 69 B
006206 generated/0917 Generated true Seeded random text, mutation: none. 372 B
006207 generated/0918 Generated false Seeded random text, mutation: insert byte. 36 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
006211 generated/0922 Generated false Seeded random text, mutation: insert byte. 14 B
006212 generated/0923 Generated false Seeded random text, mutation: truncate. 11 B
006213 generated/0924 Generated false Seeded random text, mutation: flip bit. 47 B
006214 generated/0925 Generated false Seeded random text, mutation: insert byte. 112 B
006215 generated/0926 Generated false Seeded random text, mutation: truncate. 233 B
006216 generated/0927 Generated false Seeded random text, mutation: splice bad sequence. 55 B
006217 generated/0928 Generated true Seeded random text, mutation: flip bit. 17 B
006218 generated/0929 Generated false Seeded random text, mutation: insert byte. 5 B
006219 generated/0930 Generated true Seeded random text, mutation: replace byte. 22 B
006220 generated/0931 Generated false Seeded random text, mutation: insert byte. 69 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
006223 generated/0934 Generated false Seeded random text, mutation: truncate. 6 B
006224 generated/0935 Generated false Seeded random text, mutation: splice bad sequence. 8 B
006225 generated/0936 Generated true Seeded random text, mutation: none. 11 B
006226 generated/0937 Generated true Seeded random text, mutation: flip bit. 14 B
006227 generated/0938 Generated true Seeded random text, mutation: none. 14 B
006228 generated/0939 Generated true Seeded random text, mutation: truncate. 4 B
006229 generated/0940 Generated false Seeded random text, mutation: splice bad sequence. 324 B
006230 generated/0941 Generated true Seeded random text, mutation: none. 329 B
006231 generated/0942 Generated false Seeded random text, mutation: replace byte. 11 B
006232 generated/0943 Generated false Seeded random text, mutation: truncate. 178 B
006233 generated/0944 Generated false Seeded random text, mutation: insert byte. 258 B
006234 generated/0945 Generated false Seeded random text, mutation: replace byte. 21 B
006235 generated/0946 Generated true Seeded random text, mutation: none. 65 B
006236 generated/0947 Generated false Seeded random text, mutation: delete byte. 4 B
006237 generated/0948 Generated false Seeded random text, mutation: delete byte. 7 B
006238 generated/0949 Generated true Seeded random text, mutation: delete byte. 12 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
006242 generated/0953 Generated false Seeded random text, mutation: truncate. 24 B
006243 generated/0954 Generated true Seeded random text, mutation: flip bit. 5 B
006244 generated/0956 Generated true Seeded random text, mutation: flip bit. 150 B
006245 generated/0957 Generated false Seeded random text, mutation: splice bad sequence. 79 B
006246 generated/0958 Generated true Seeded random text, mutation: none. 249 B
006247 generated/0959 Generated false Seeded random text, mutation: replace byte. 8 B
006248 generated/0960 Generated true Seeded random text, mutation: none. 4 B
006249 generated/0961 Generated true Seeded random text, mutation: none. 157 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.