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
004873 regression/F0 9F ending 87 bytes Focused regression false 87 B
004874 regression/F4 8F BF ending 87 bytes Focused regression false 87 B
004875 regression/F0 ending 87 bytes Focused regression false 87 B
004876 regression/U+00E9 ending 87 bytes Focused regression true 87 B
004877 regression/U+20AC ending 87 bytes Focused regression true 87 B
004878 regression/U+1F600 ending 87 bytes Focused regression true 87 B
004879 regression/C3 ending 88 bytes Focused regression false 88 B
004880 regression/E2 82 ending 88 bytes Focused regression false 88 B
004881 regression/E2 ending 88 bytes Focused regression false 88 B
004882 regression/F0 9F 98 ending 88 bytes Focused regression false 88 B
004883 regression/F0 9F ending 88 bytes Focused regression false 88 B
004884 regression/F4 8F BF ending 88 bytes Focused regression false 88 B
004885 regression/F0 ending 88 bytes Focused regression false 88 B
004886 regression/U+00E9 ending 88 bytes Focused regression true 88 B
004887 regression/U+20AC ending 88 bytes Focused regression true 88 B
004888 regression/U+1F600 ending 88 bytes Focused regression true 88 B
004889 regression/C3 ending 89 bytes Focused regression false 89 B
004890 regression/E2 82 ending 89 bytes Focused regression false 89 B
004891 regression/E2 ending 89 bytes Focused regression false 89 B
004892 regression/F0 9F 98 ending 89 bytes Focused regression false 89 B
004893 regression/F0 9F ending 89 bytes Focused regression false 89 B
004894 regression/F4 8F BF ending 89 bytes Focused regression false 89 B
004895 regression/F0 ending 89 bytes Focused regression false 89 B
004896 regression/U+00E9 ending 89 bytes Focused regression true 89 B
004897 regression/U+20AC ending 89 bytes Focused regression true 89 B
004898 regression/U+1F600 ending 89 bytes Focused regression true 89 B
004899 regression/C3 ending 90 bytes Focused regression false 90 B
004900 regression/E2 82 ending 90 bytes Focused regression false 90 B
004901 regression/E2 ending 90 bytes Focused regression false 90 B
004902 regression/F0 9F 98 ending 90 bytes Focused regression false 90 B
004903 regression/F0 9F ending 90 bytes Focused regression false 90 B
004904 regression/F4 8F BF ending 90 bytes Focused regression false 90 B
004905 regression/F0 ending 90 bytes Focused regression false 90 B
004906 regression/U+00E9 ending 90 bytes Focused regression true 90 B
004907 regression/U+20AC ending 90 bytes Focused regression true 90 B
004908 regression/U+1F600 ending 90 bytes Focused regression true 90 B
004909 regression/C3 ending 91 bytes Focused regression false 91 B
004910 regression/E2 82 ending 91 bytes Focused regression false 91 B
004911 regression/E2 ending 91 bytes Focused regression false 91 B
004912 regression/F0 9F 98 ending 91 bytes Focused regression false 91 B
004913 regression/F0 9F ending 91 bytes Focused regression false 91 B
004914 regression/F4 8F BF ending 91 bytes Focused regression false 91 B
004915 regression/F0 ending 91 bytes Focused regression false 91 B
004916 regression/U+00E9 ending 91 bytes Focused regression true 91 B
004917 regression/U+20AC ending 91 bytes Focused regression true 91 B
004918 regression/U+1F600 ending 91 bytes Focused regression true 91 B
004919 regression/C3 ending 92 bytes Focused regression false 92 B
004920 regression/E2 82 ending 92 bytes Focused regression false 92 B
004921 regression/E2 ending 92 bytes Focused regression false 92 B
004922 regression/F0 9F 98 ending 92 bytes Focused regression false 92 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.