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
005400 generated/0085 Generated false Seeded random text, mutation: flip bit. 201 B
005401 generated/0086 Generated false Seeded random text, mutation: replace byte. 88 B
005402 generated/0087 Generated true Seeded random text, mutation: none. 244 B
005403 generated/0088 Generated false Seeded random text, mutation: replace byte. 74 B
005404 generated/0089 Generated true Seeded random text, mutation: none. 63 B
005405 generated/0090 Generated true Seeded random text, mutation: none. 66 B
005406 generated/0091 Generated true Seeded random text, mutation: flip bit. 166 B
005407 generated/0092 Generated true Seeded random text, mutation: truncate. 5 B
005408 generated/0093 Generated true Seeded random text, mutation: none. 3 B
005409 generated/0094 Generated false Seeded random text, mutation: insert byte. 31 B
005410 generated/0095 Generated false Seeded random text, mutation: truncate. 2 B
005411 generated/0096 Generated false Seeded random text, mutation: splice bad sequence. 347 B
005412 generated/0097 Generated true Seeded random text, mutation: none. 377 B
005413 generated/0098 Generated true Seeded random text, mutation: none. 8 B
005414 generated/0099 Generated true Seeded random text, mutation: none. 272 B
005415 generated/0100 Generated true Seeded random text, mutation: none. 58 B
005416 generated/0101 Generated true Seeded random text, mutation: none. 58 B
005417 generated/0102 Generated false Seeded random text, mutation: flip bit. 44 B
005418 generated/0103 Generated true Seeded random text, mutation: none. 8 B
005419 generated/0104 Generated true Seeded random text, mutation: none. 6 B
005420 generated/0105 Generated true Seeded random text, mutation: replace byte. 3 B
005421 generated/0106 Generated true Seeded random text, mutation: none. 360 B
005422 generated/0107 Generated false Seeded random text, mutation: truncate. 5 B
005423 generated/0108 Generated false Seeded random text, mutation: replace byte. 63 B
005424 generated/0109 Generated false Seeded random text, mutation: replace byte. 21 B
005425 generated/0110 Generated false Seeded random text, mutation: splice bad sequence. 11 B
005426 generated/0111 Generated false Seeded random text, mutation: splice bad sequence. 70 B
005427 generated/0112 Generated true Seeded random text, mutation: none. 134 B
005428 generated/0113 Generated false Seeded random text, mutation: delete byte. 44 B
005429 generated/0114 Generated true Seeded random text, mutation: flip bit. 66 B
005430 generated/0116 Generated false Seeded random text, mutation: truncate. 11 B
005431 generated/0117 Generated true Seeded random text, mutation: none. 71 B
005432 generated/0118 Generated true Seeded random text, mutation: truncate. 23 B
005433 generated/0119 Generated true Seeded random text, mutation: none. 12 B
005434 generated/0120 Generated false Seeded random text, mutation: flip bit. 4 B
005435 generated/0121 Generated true Seeded random text, mutation: none. 284 B
005436 generated/0122 Generated true Seeded random text, mutation: none. 4 B
005437 generated/0123 Generated true Seeded random text, mutation: none. 107 B
005438 generated/0124 Generated true Seeded random text, mutation: none. 41 B
005439 generated/0125 Generated false Seeded random text, mutation: truncate. 9 B
005440 generated/0126 Generated false Seeded random text, mutation: replace byte. 10 B
005441 generated/0127 Generated true Seeded random text, mutation: flip bit. 8 B
005442 generated/0128 Generated true Seeded random text, mutation: none. 3 B
005443 generated/0129 Generated true Seeded random text, mutation: none. 15 B
005444 generated/0130 Generated true Seeded random text, mutation: truncate. 6 B
005445 generated/0131 Generated false Seeded random text, mutation: splice bad sequence. 35 B
005446 generated/0132 Generated false Seeded random text, mutation: replace byte. 15 B
005447 generated/0133 Generated true Seeded random text, mutation: flip bit. 87 B
005448 generated/0134 Generated true Seeded random text, mutation: none. 13 B
005449 generated/0135 Generated false Seeded random text, mutation: delete byte. 187 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.