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
005691 generated/0379 Generated true Seeded random text, mutation: none. 13 B
005692 generated/0380 Generated true Seeded random text, mutation: none. 399 B
005695 generated/0383 Generated true Seeded random text, mutation: none. 277 B
005696 generated/0384 Generated true Seeded random text, mutation: none. 16 B
005697 generated/0385 Generated true Seeded random text, mutation: none. 10 B
005706 generated/0394 Generated true Seeded random text, mutation: none. 337 B
005709 generated/0397 Generated true Seeded random text, mutation: none. 316 B
005710 generated/0398 Generated true Seeded random text, mutation: none. 244 B
005714 generated/0402 Generated true Seeded random text, mutation: none. 12 B
005717 generated/0405 Generated true Seeded random text, mutation: none. 4 B
005718 generated/0406 Generated true Seeded random text, mutation: none. 12 B
005723 generated/0411 Generated true Seeded random text, mutation: none. 61 B
005724 generated/0412 Generated true Seeded random text, mutation: none. 73 B
005725 generated/0413 Generated true Seeded random text, mutation: none. 10 B
005727 generated/0415 Generated true Seeded random text, mutation: none. 324 B
005728 generated/0416 Generated true Seeded random text, mutation: none. 362 B
005729 generated/0417 Generated true Seeded random text, mutation: none. 3 B
005731 generated/0419 Generated true Seeded random text, mutation: none. 79 B
005735 generated/0423 Generated true Seeded random text, mutation: none. 18 B
005741 generated/0429 Generated true Seeded random text, mutation: none. 4 B
005745 generated/0433 Generated true Seeded random text, mutation: none. 16 B
005748 generated/0436 Generated true Seeded random text, mutation: none. 60 B
005749 generated/0437 Generated true Seeded random text, mutation: none. 185 B
005750 generated/0438 Generated true Seeded random text, mutation: none. 6 B
005751 generated/0439 Generated true Seeded random text, mutation: none. 56 B
005753 generated/0442 Generated true Seeded random text, mutation: none. 208 B
005755 generated/0444 Generated true Seeded random text, mutation: none. 31 B
005756 generated/0445 Generated true Seeded random text, mutation: none. 386 B
005760 generated/0449 Generated true Seeded random text, mutation: none. 29 B
005761 generated/0450 Generated true Seeded random text, mutation: none. 10 B
005762 generated/0451 Generated true Seeded random text, mutation: none. 358 B
005763 generated/0452 Generated true Seeded random text, mutation: none. 161 B
005764 generated/0453 Generated true Seeded random text, mutation: none. 203 B
005765 generated/0454 Generated true Seeded random text, mutation: none. 29 B
005768 generated/0457 Generated true Seeded random text, mutation: none. 16 B
005770 generated/0459 Generated true Seeded random text, mutation: none. 14 B
005771 generated/0460 Generated true Seeded random text, mutation: none. 8 B
005778 generated/0469 Generated true Seeded random text, mutation: none. 8 B
005782 generated/0473 Generated true Seeded random text, mutation: none. 73 B
005784 generated/0475 Generated true Seeded random text, mutation: none. 114 B
005785 generated/0476 Generated true Seeded random text, mutation: none. 396 B
005786 generated/0477 Generated true Seeded random text, mutation: none. 6 B
005787 generated/0478 Generated true Seeded random text, mutation: none. 2 B
005789 generated/0480 Generated true Seeded random text, mutation: none. 197 B
005796 generated/0488 Generated true Seeded random text, mutation: none. 14 B
005798 generated/0490 Generated true Seeded random text, mutation: none. 13 B
005801 generated/0493 Generated true Seeded random text, mutation: none. 75 B
005802 generated/0494 Generated true Seeded random text, mutation: none. 14 B
005807 generated/0499 Generated true Seeded random text, mutation: none. 64 B
005810 generated/0502 Generated true Seeded random text, mutation: none. 52 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.