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
005450 generated/0136 Generated true Seeded random text, mutation: none. 319 B
005451 generated/0137 Generated false Seeded random text, mutation: insert byte. 81 B
005452 generated/0138 Generated false Seeded random text, mutation: splice bad sequence. 16 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
005456 generated/0142 Generated false Seeded random text, mutation: splice bad sequence. 12 B
005457 generated/0143 Generated false Seeded random text, mutation: truncate. 5 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
005462 generated/0148 Generated false Seeded random text, mutation: truncate. 7 B
005463 generated/0149 Generated true Seeded random text, mutation: truncate. 15 B
005464 generated/0150 Generated true Seeded random text, mutation: none. 4 B
005465 generated/0151 Generated true Seeded random text, mutation: delete byte. 150 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
005469 generated/0155 Generated true Seeded random text, mutation: flip bit. 10 B
005470 generated/0156 Generated true Seeded random text, mutation: none. 171 B
005471 generated/0157 Generated true Seeded random text, mutation: flip bit. 8 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
005478 generated/0164 Generated false Seeded random text, mutation: replace byte. 74 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
005481 generated/0167 Generated false Seeded random text, mutation: flip bit. 8 B
005482 generated/0168 Generated true Seeded random text, mutation: delete byte. 5 B
005483 generated/0169 Generated false Seeded random text, mutation: truncate. 181 B
005484 generated/0170 Generated true Seeded random text, mutation: truncate. 49 B
005485 generated/0171 Generated true Seeded random text, mutation: none. 310 B
005486 generated/0172 Generated false Seeded random text, mutation: splice bad sequence. 23 B
005487 generated/0173 Generated false Seeded random text, mutation: insert byte. 208 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
005490 generated/0176 Generated false Seeded random text, mutation: splice bad sequence. 14 B
005491 generated/0177 Generated false Seeded random text, mutation: splice bad sequence. 135 B
005492 generated/0178 Generated false Seeded random text, mutation: truncate. 356 B
005493 generated/0179 Generated true Seeded random text, mutation: none. 343 B
005494 generated/0180 Generated false Seeded random text, mutation: splice bad sequence. 69 B
005495 generated/0181 Generated false Seeded random text, mutation: replace byte. 250 B
005496 generated/0182 Generated false Seeded random text, mutation: flip bit. 7 B
005497 generated/0183 Generated true Seeded random text, mutation: flip bit. 15 B
005498 generated/0184 Generated true Seeded random text, mutation: flip bit. 27 B
005499 generated/0185 Generated true Seeded random text, mutation: none. 84 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.