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
004823 regression/F0 9F ending 82 bytes Focused regression false 82 B
004824 regression/F4 8F BF ending 82 bytes Focused regression false 82 B
004825 regression/F0 ending 82 bytes Focused regression false 82 B
004826 regression/U+00E9 ending 82 bytes Focused regression true 82 B
004827 regression/U+20AC ending 82 bytes Focused regression true 82 B
004828 regression/U+1F600 ending 82 bytes Focused regression true 82 B
004829 regression/C3 ending 83 bytes Focused regression false 83 B
004830 regression/E2 82 ending 83 bytes Focused regression false 83 B
004831 regression/E2 ending 83 bytes Focused regression false 83 B
004832 regression/F0 9F 98 ending 83 bytes Focused regression false 83 B
004833 regression/F0 9F ending 83 bytes Focused regression false 83 B
004834 regression/F4 8F BF ending 83 bytes Focused regression false 83 B
004835 regression/F0 ending 83 bytes Focused regression false 83 B
004836 regression/U+00E9 ending 83 bytes Focused regression true 83 B
004837 regression/U+20AC ending 83 bytes Focused regression true 83 B
004838 regression/U+1F600 ending 83 bytes Focused regression true 83 B
004839 regression/C3 ending 84 bytes Focused regression false 84 B
004840 regression/E2 82 ending 84 bytes Focused regression false 84 B
004841 regression/E2 ending 84 bytes Focused regression false 84 B
004842 regression/F0 9F 98 ending 84 bytes Focused regression false 84 B
004843 regression/F0 9F ending 84 bytes Focused regression false 84 B
004844 regression/F4 8F BF ending 84 bytes Focused regression false 84 B
004845 regression/F0 ending 84 bytes Focused regression false 84 B
004846 regression/U+00E9 ending 84 bytes Focused regression true 84 B
004847 regression/U+20AC ending 84 bytes Focused regression true 84 B
004848 regression/U+1F600 ending 84 bytes Focused regression true 84 B
004849 regression/C3 ending 85 bytes Focused regression false 85 B
004850 regression/E2 82 ending 85 bytes Focused regression false 85 B
004851 regression/E2 ending 85 bytes Focused regression false 85 B
004852 regression/F0 9F 98 ending 85 bytes Focused regression false 85 B
004853 regression/F0 9F ending 85 bytes Focused regression false 85 B
004854 regression/F4 8F BF ending 85 bytes Focused regression false 85 B
004855 regression/F0 ending 85 bytes Focused regression false 85 B
004856 regression/U+00E9 ending 85 bytes Focused regression true 85 B
004857 regression/U+20AC ending 85 bytes Focused regression true 85 B
004858 regression/U+1F600 ending 85 bytes Focused regression true 85 B
004859 regression/C3 ending 86 bytes Focused regression false 86 B
004860 regression/E2 82 ending 86 bytes Focused regression false 86 B
004861 regression/E2 ending 86 bytes Focused regression false 86 B
004862 regression/F0 9F 98 ending 86 bytes Focused regression false 86 B
004863 regression/F0 9F ending 86 bytes Focused regression false 86 B
004864 regression/F4 8F BF ending 86 bytes Focused regression false 86 B
004865 regression/F0 ending 86 bytes Focused regression false 86 B
004866 regression/U+00E9 ending 86 bytes Focused regression true 86 B
004867 regression/U+20AC ending 86 bytes Focused regression true 86 B
004868 regression/U+1F600 ending 86 bytes Focused regression true 86 B
004869 regression/C3 ending 87 bytes Focused regression false 87 B
004870 regression/E2 82 ending 87 bytes Focused regression false 87 B
004871 regression/E2 ending 87 bytes Focused regression false 87 B
004872 regression/F0 9F 98 ending 87 bytes Focused regression false 87 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.