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,287 of 7,246 cases · 383 true · 904 false

Case Name Expected Note Size
004773 regression/F0 9F ending 77 bytes Focused regression false 77 B
004774 regression/F4 8F BF ending 77 bytes Focused regression false 77 B
004775 regression/F0 ending 77 bytes Focused regression false 77 B
004776 regression/U+00E9 ending 77 bytes Focused regression true 77 B
004777 regression/U+20AC ending 77 bytes Focused regression true 77 B
004778 regression/U+1F600 ending 77 bytes Focused regression true 77 B
004779 regression/C3 ending 78 bytes Focused regression false 78 B
004780 regression/E2 82 ending 78 bytes Focused regression false 78 B
004781 regression/E2 ending 78 bytes Focused regression false 78 B
004782 regression/F0 9F 98 ending 78 bytes Focused regression false 78 B
004783 regression/F0 9F ending 78 bytes Focused regression false 78 B
004784 regression/F4 8F BF ending 78 bytes Focused regression false 78 B
004785 regression/F0 ending 78 bytes Focused regression false 78 B
004786 regression/U+00E9 ending 78 bytes Focused regression true 78 B
004787 regression/U+20AC ending 78 bytes Focused regression true 78 B
004788 regression/U+1F600 ending 78 bytes Focused regression true 78 B
004789 regression/C3 ending 79 bytes Focused regression false 79 B
004790 regression/E2 82 ending 79 bytes Focused regression false 79 B
004791 regression/E2 ending 79 bytes Focused regression false 79 B
004792 regression/F0 9F 98 ending 79 bytes Focused regression false 79 B
004793 regression/F0 9F ending 79 bytes Focused regression false 79 B
004794 regression/F4 8F BF ending 79 bytes Focused regression false 79 B
004795 regression/F0 ending 79 bytes Focused regression false 79 B
004796 regression/U+00E9 ending 79 bytes Focused regression true 79 B
004797 regression/U+20AC ending 79 bytes Focused regression true 79 B
004798 regression/U+1F600 ending 79 bytes Focused regression true 79 B
004799 regression/C3 ending 80 bytes Focused regression false 80 B
004800 regression/E2 82 ending 80 bytes Focused regression false 80 B
004801 regression/E2 ending 80 bytes Focused regression false 80 B
004802 regression/F0 9F 98 ending 80 bytes Focused regression false 80 B
004803 regression/F0 9F ending 80 bytes Focused regression false 80 B
004804 regression/F4 8F BF ending 80 bytes Focused regression false 80 B
004805 regression/F0 ending 80 bytes Focused regression false 80 B
004806 regression/U+00E9 ending 80 bytes Focused regression true 80 B
004807 regression/U+20AC ending 80 bytes Focused regression true 80 B
004808 regression/U+1F600 ending 80 bytes Focused regression true 80 B
004809 regression/C3 ending 81 bytes Focused regression false 81 B
004810 regression/E2 82 ending 81 bytes Focused regression false 81 B
004811 regression/E2 ending 81 bytes Focused regression false 81 B
004812 regression/F0 9F 98 ending 81 bytes Focused regression false 81 B
004813 regression/F0 9F ending 81 bytes Focused regression false 81 B
004814 regression/F4 8F BF ending 81 bytes Focused regression false 81 B
004815 regression/F0 ending 81 bytes Focused regression false 81 B
004816 regression/U+00E9 ending 81 bytes Focused regression true 81 B
004817 regression/U+20AC ending 81 bytes Focused regression true 81 B
004818 regression/U+1F600 ending 81 bytes Focused regression true 81 B
004819 regression/C3 ending 82 bytes Focused regression false 82 B
004820 regression/E2 82 ending 82 bytes Focused regression false 82 B
004821 regression/E2 ending 82 bytes Focused regression false 82 B
004822 regression/F0 9F 98 ending 82 bytes Focused regression false 82 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.