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
005943 generated/0641 Generated true Seeded random text, mutation: none. 15 B
005955 generated/0655 Generated true Seeded random text, mutation: none. 54 B
005963 generated/0664 Generated true Seeded random text, mutation: none. 6 B
005967 generated/0668 Generated true Seeded random text, mutation: none. 373 B
005969 generated/0670 Generated true Seeded random text, mutation: none. 8 B
005974 generated/0675 Generated true Seeded random text, mutation: none. 390 B
005977 generated/0678 Generated true Seeded random text, mutation: none. 7 B
005980 generated/0681 Generated true Seeded random text, mutation: none. 58 B
005982 generated/0683 Generated true Seeded random text, mutation: none. 6 B
005986 generated/0687 Generated true Seeded random text, mutation: none. 13 B
005987 generated/0688 Generated true Seeded random text, mutation: none. 299 B
005989 generated/0690 Generated true Seeded random text, mutation: none. 5 B
005992 generated/0693 Generated true Seeded random text, mutation: none. 43 B
005994 generated/0695 Generated true Seeded random text, mutation: none. 295 B
005995 generated/0696 Generated true Seeded random text, mutation: none. 16 B
005997 generated/0698 Generated true Seeded random text, mutation: none. 2 B
006003 generated/0704 Generated true Seeded random text, mutation: none. 6 B
006005 generated/0706 Generated true Seeded random text, mutation: none. 135 B
006006 generated/0707 Generated true Seeded random text, mutation: none. 335 B
006009 generated/0710 Generated true Seeded random text, mutation: none. 16 B
006014 generated/0715 Generated true Seeded random text, mutation: none. 57 B
006021 generated/0723 Generated true Seeded random text, mutation: none. 42 B
006022 generated/0724 Generated true Seeded random text, mutation: none. 397 B
006026 generated/0728 Generated true Seeded random text, mutation: none. 74 B
006029 generated/0731 Generated true Seeded random text, mutation: none. 4 B
006030 generated/0732 Generated true Seeded random text, mutation: none. 79 B
006033 generated/0735 Generated true Seeded random text, mutation: none. 13 B
006039 generated/0741 Generated true Seeded random text, mutation: none. 7 B
006040 generated/0742 Generated true Seeded random text, mutation: none. 385 B
006043 generated/0747 Generated true Seeded random text, mutation: none. 48 B
006045 generated/0749 Generated true Seeded random text, mutation: none. 346 B
006048 generated/0752 Generated true Seeded random text, mutation: none. 312 B
006051 generated/0755 Generated true Seeded random text, mutation: none. 5 B
006056 generated/0760 Generated true Seeded random text, mutation: none. 40 B
006060 generated/0764 Generated true Seeded random text, mutation: none. 72 B
006064 generated/0768 Generated true Seeded random text, mutation: none. 15 B
006068 generated/0772 Generated true Seeded random text, mutation: none. 388 B
006070 generated/0774 Generated true Seeded random text, mutation: none. 6 B
006071 generated/0775 Generated true Seeded random text, mutation: none. 180 B
006074 generated/0778 Generated true Seeded random text, mutation: none. 12 B
006078 generated/0782 Generated true Seeded random text, mutation: none. 51 B
006084 generated/0788 Generated true Seeded random text, mutation: none. 4 B
006085 generated/0789 Generated true Seeded random text, mutation: none. 39 B
006086 generated/0790 Generated true Seeded random text, mutation: none. 76 B
006087 generated/0791 Generated true Seeded random text, mutation: none. 166 B
006088 generated/0792 Generated true Seeded random text, mutation: none. 17 B
006090 generated/0794 Generated true Seeded random text, mutation: none. 72 B
006092 generated/0796 Generated true Seeded random text, mutation: none. 17 B
006096 generated/0800 Generated true Seeded random text, mutation: none. 159 B
006098 generated/0802 Generated true Seeded random text, mutation: none. 9 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.