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

1,925 of 7,246 cases · 1,057 true · 868 false

Case Name Expected Note Size
005621 generated/0309 Generated true Seeded random text, mutation: none. 6 B
005622 generated/0310 Generated true Seeded random text, mutation: truncate. 4 B
005623 generated/0311 Generated false Seeded random text, mutation: truncate. 15 B
005624 generated/0312 Generated true Seeded random text, mutation: none. 139 B
005625 generated/0313 Generated false Seeded random text, mutation: flip bit. 12 B
005626 generated/0314 Generated false Seeded random text, mutation: delete byte. 49 B
005627 generated/0315 Generated false Seeded random text, mutation: insert byte. 76 B
005628 generated/0316 Generated false Seeded random text, mutation: delete byte. 291 B
005629 generated/0317 Generated false Seeded random text, mutation: insert byte. 42 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
005633 generated/0321 Generated false Seeded random text, mutation: replace byte. 6 B
005634 generated/0322 Generated true Seeded random text, mutation: none. 19 B
005635 generated/0323 Generated false Seeded random text, mutation: splice bad sequence. 42 B
005636 generated/0324 Generated false Seeded random text, mutation: splice bad sequence. 161 B
005637 generated/0325 Generated true Seeded random text, mutation: flip bit. 52 B
005638 generated/0326 Generated true Seeded random text, mutation: none. 131 B
005639 generated/0327 Generated false Seeded random text, mutation: replace byte. 73 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
005643 generated/0331 Generated true Seeded random text, mutation: flip bit. 11 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
005647 generated/0335 Generated false Seeded random text, mutation: delete byte. 5 B
005648 generated/0336 Generated false Seeded random text, mutation: delete byte. 15 B
005649 generated/0337 Generated true Seeded random text, mutation: truncate. 15 B
005650 generated/0338 Generated false Seeded random text, mutation: splice bad sequence. 77 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
005654 generated/0342 Generated false Seeded random text, mutation: delete byte. 70 B
005655 generated/0343 Generated false Seeded random text, mutation: delete byte. 13 B
005656 generated/0344 Generated false Seeded random text, mutation: truncate. 4 B
005657 generated/0345 Generated true Seeded random text, mutation: none. 8 B
005658 generated/0346 Generated false Seeded random text, mutation: insert byte. 12 B
005659 generated/0347 Generated false Seeded random text, mutation: insert byte. 67 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
005662 generated/0350 Generated false Seeded random text, mutation: delete byte. 7 B
005663 generated/0351 Generated false Seeded random text, mutation: truncate. 223 B
005664 generated/0352 Generated true Seeded random text, mutation: none. 18 B
005665 generated/0353 Generated false Seeded random text, mutation: splice bad sequence. 110 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
005668 generated/0356 Generated false Seeded random text, mutation: flip bit. 304 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

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.