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
005560 generated/0246 Generated true Seeded random text, mutation: none. 12 B
005563 generated/0249 Generated true Seeded random text, mutation: none. 6 B
005564 generated/0250 Generated true Seeded random text, mutation: none. 247 B
005565 generated/0251 Generated true Seeded random text, mutation: none. 5 B
005567 generated/0253 Generated true Seeded random text, mutation: none. 116 B
005569 generated/0255 Generated true Seeded random text, mutation: none. 4 B
005571 generated/0257 Generated true Seeded random text, mutation: none. 12 B
005572 generated/0258 Generated true Seeded random text, mutation: none. 114 B
005577 generated/0263 Generated true Seeded random text, mutation: none. 20 B
005579 generated/0266 Generated true Seeded random text, mutation: none. 15 B
005580 generated/0267 Generated true Seeded random text, mutation: none. 346 B
005581 generated/0268 Generated true Seeded random text, mutation: none. 30 B
005583 generated/0270 Generated true Seeded random text, mutation: none. 36 B
005588 generated/0275 Generated true Seeded random text, mutation: none. 389 B
005590 generated/0277 Generated true Seeded random text, mutation: none. 62 B
005593 generated/0280 Generated true Seeded random text, mutation: none. 26 B
005596 generated/0283 Generated true Seeded random text, mutation: none. 46 B
005603 generated/0291 Generated true Seeded random text, mutation: none. 68 B
005612 generated/0300 Generated true Seeded random text, mutation: none. 94 B
005618 generated/0306 Generated true Seeded random text, mutation: none. 194 B
005620 generated/0308 Generated true Seeded random text, mutation: none. 4 B
005621 generated/0309 Generated true Seeded random text, mutation: none. 6 B
005624 generated/0312 Generated true Seeded random text, mutation: none. 139 B
005630 generated/0318 Generated true Seeded random text, mutation: none. 33 B
005631 generated/0319 Generated true Seeded random text, mutation: none. 24 B
005632 generated/0320 Generated true Seeded random text, mutation: none. 26 B
005634 generated/0322 Generated true Seeded random text, mutation: none. 19 B
005638 generated/0326 Generated true Seeded random text, mutation: none. 131 B
005640 generated/0328 Generated true Seeded random text, mutation: none. 20 B
005641 generated/0329 Generated true Seeded random text, mutation: none. 161 B
005642 generated/0330 Generated true Seeded random text, mutation: none. 85 B
005644 generated/0332 Generated true Seeded random text, mutation: none. 2 B
005645 generated/0333 Generated true Seeded random text, mutation: none. 40 B
005646 generated/0334 Generated true Seeded random text, mutation: none. 68 B
005651 generated/0339 Generated true Seeded random text, mutation: none. 230 B
005652 generated/0340 Generated true Seeded random text, mutation: none. 38 B
005653 generated/0341 Generated true Seeded random text, mutation: none. 63 B
005657 generated/0345 Generated true Seeded random text, mutation: none. 8 B
005660 generated/0348 Generated true Seeded random text, mutation: none. 62 B
005661 generated/0349 Generated true Seeded random text, mutation: none. 5 B
005664 generated/0352 Generated true Seeded random text, mutation: none. 18 B
005666 generated/0354 Generated true Seeded random text, mutation: none. 37 B
005667 generated/0355 Generated true Seeded random text, mutation: none. 201 B
005669 generated/0357 Generated true Seeded random text, mutation: none. 4 B
005670 generated/0358 Generated true Seeded random text, mutation: none. 41 B
005674 generated/0362 Generated true Seeded random text, mutation: none. 66 B
005678 generated/0366 Generated true Seeded random text, mutation: none. 74 B
005682 generated/0370 Generated true Seeded random text, mutation: none. 202 B
005686 generated/0374 Generated true Seeded random text, mutation: none. 75 B
005690 generated/0378 Generated true Seeded random text, mutation: none. 311 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.