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
005321 generated/0000 Generated true Seeded random text, mutation: none. 3 B
005326 generated/0006 Generated true Seeded random text, mutation: none. 55 B
005328 generated/0008 Generated true Seeded random text, mutation: none. 54 B
005334 generated/0014 Generated true Seeded random text, mutation: none. 314 B
005336 generated/0017 Generated true Seeded random text, mutation: none. 70 B
005338 generated/0019 Generated true Seeded random text, mutation: none. 8 B
005340 generated/0021 Generated true Seeded random text, mutation: none. 69 B
005341 generated/0022 Generated true Seeded random text, mutation: none. 156 B
005342 generated/0023 Generated true Seeded random text, mutation: none. 348 B
005344 generated/0025 Generated true Seeded random text, mutation: none. 15 B
005354 generated/0036 Generated true Seeded random text, mutation: none. 199 B
005357 generated/0039 Generated true Seeded random text, mutation: none. 52 B
005358 generated/0040 Generated true Seeded random text, mutation: none. 70 B
005359 generated/0041 Generated true Seeded random text, mutation: none. 31 B
005362 generated/0045 Generated true Seeded random text, mutation: none. 15 B
005365 generated/0048 Generated true Seeded random text, mutation: none. 6 B
005366 generated/0049 Generated true Seeded random text, mutation: none. 99 B
005368 generated/0051 Generated true Seeded random text, mutation: none. 62 B
005369 generated/0052 Generated true Seeded random text, mutation: none. 48 B
005370 generated/0053 Generated true Seeded random text, mutation: none. 74 B
005372 generated/0055 Generated true Seeded random text, mutation: none. 4 B
005378 generated/0062 Generated true Seeded random text, mutation: none. 398 B
005379 generated/0063 Generated true Seeded random text, mutation: none. 244 B
005380 generated/0065 Generated true Seeded random text, mutation: none. 348 B
005383 generated/0068 Generated true Seeded random text, mutation: none. 53 B
005384 generated/0069 Generated true Seeded random text, mutation: none. 204 B
005386 generated/0071 Generated true Seeded random text, mutation: none. 14 B
005387 generated/0072 Generated true Seeded random text, mutation: none. 76 B
005393 generated/0078 Generated true Seeded random text, mutation: none. 68 B
005394 generated/0079 Generated true Seeded random text, mutation: none. 11 B
005402 generated/0087 Generated true Seeded random text, mutation: none. 244 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
005408 generated/0093 Generated true Seeded random text, mutation: none. 3 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
005418 generated/0103 Generated true Seeded random text, mutation: none. 8 B
005419 generated/0104 Generated true Seeded random text, mutation: none. 6 B
005421 generated/0106 Generated true Seeded random text, mutation: none. 360 B
005427 generated/0112 Generated true Seeded random text, mutation: none. 134 B
005431 generated/0117 Generated true Seeded random text, mutation: none. 71 B
005433 generated/0119 Generated true Seeded random text, mutation: none. 12 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
005442 generated/0128 Generated true Seeded random text, mutation: none. 3 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.