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
005443 generated/0129 Generated true Seeded random text, mutation: none. 15 B
005448 generated/0134 Generated true Seeded random text, mutation: none. 13 B
005450 generated/0136 Generated true Seeded random text, mutation: none. 319 B
005453 generated/0139 Generated true Seeded random text, mutation: none. 4 B
005454 generated/0140 Generated true Seeded random text, mutation: none. 12 B
005455 generated/0141 Generated true Seeded random text, mutation: none. 34 B
005458 generated/0144 Generated true Seeded random text, mutation: none. 4 B
005459 generated/0145 Generated true Seeded random text, mutation: none. 186 B
005460 generated/0146 Generated true Seeded random text, mutation: none. 78 B
005461 generated/0147 Generated true Seeded random text, mutation: none. 19 B
005464 generated/0150 Generated true Seeded random text, mutation: none. 4 B
005466 generated/0152 Generated true Seeded random text, mutation: none. 78 B
005467 generated/0153 Generated true Seeded random text, mutation: none. 38 B
005468 generated/0154 Generated true Seeded random text, mutation: none. 103 B
005470 generated/0156 Generated true Seeded random text, mutation: none. 171 B
005472 generated/0158 Generated true Seeded random text, mutation: none. 8 B
005473 generated/0159 Generated true Seeded random text, mutation: none. 166 B
005474 generated/0160 Generated true Seeded random text, mutation: none. 95 B
005475 generated/0161 Generated true Seeded random text, mutation: none. 52 B
005476 generated/0162 Generated true Seeded random text, mutation: none. 86 B
005477 generated/0163 Generated true Seeded random text, mutation: none. 399 B
005479 generated/0165 Generated true Seeded random text, mutation: none. 224 B
005480 generated/0166 Generated true Seeded random text, mutation: none. 15 B
005485 generated/0171 Generated true Seeded random text, mutation: none. 310 B
005488 generated/0174 Generated true Seeded random text, mutation: none. 15 B
005489 generated/0175 Generated true Seeded random text, mutation: none. 33 B
005493 generated/0179 Generated true Seeded random text, mutation: none. 343 B
005499 generated/0185 Generated true Seeded random text, mutation: none. 84 B
005501 generated/0187 Generated true Seeded random text, mutation: none. 303 B
005503 generated/0189 Generated true Seeded random text, mutation: none. 179 B
005505 generated/0191 Generated true Seeded random text, mutation: none. 6 B
005507 generated/0193 Generated true Seeded random text, mutation: none. 247 B
005517 generated/0203 Generated true Seeded random text, mutation: none. 305 B
005520 generated/0206 Generated true Seeded random text, mutation: none. 7 B
005522 generated/0208 Generated true Seeded random text, mutation: none. 66 B
005523 generated/0209 Generated true Seeded random text, mutation: none. 10 B
005527 generated/0213 Generated true Seeded random text, mutation: none. 53 B
005528 generated/0214 Generated true Seeded random text, mutation: none. 28 B
005529 generated/0215 Generated true Seeded random text, mutation: none. 173 B
005531 generated/0217 Generated true Seeded random text, mutation: none. 344 B
005532 generated/0218 Generated true Seeded random text, mutation: none. 316 B
005539 generated/0225 Generated true Seeded random text, mutation: none. 252 B
005542 generated/0228 Generated true Seeded random text, mutation: none. 8 B
005543 generated/0229 Generated true Seeded random text, mutation: none. 26 B
005544 generated/0230 Generated true Seeded random text, mutation: none. 11 B
005548 generated/0234 Generated true Seeded random text, mutation: none. 10 B
005550 generated/0236 Generated true Seeded random text, mutation: none. 3 B
005553 generated/0239 Generated true Seeded random text, mutation: none. 6 B
005555 generated/0241 Generated true Seeded random text, mutation: none. 28 B
005556 generated/0242 Generated true Seeded random text, mutation: none. 28 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.