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
004923 regression/F0 9F ending 92 bytes Focused regression false 92 B
004924 regression/F4 8F BF ending 92 bytes Focused regression false 92 B
004925 regression/F0 ending 92 bytes Focused regression false 92 B
004926 regression/U+00E9 ending 92 bytes Focused regression true 92 B
004927 regression/U+20AC ending 92 bytes Focused regression true 92 B
004928 regression/U+1F600 ending 92 bytes Focused regression true 92 B
004929 regression/C3 ending 93 bytes Focused regression false 93 B
004930 regression/E2 82 ending 93 bytes Focused regression false 93 B
004931 regression/E2 ending 93 bytes Focused regression false 93 B
004932 regression/F0 9F 98 ending 93 bytes Focused regression false 93 B
004933 regression/F0 9F ending 93 bytes Focused regression false 93 B
004934 regression/F4 8F BF ending 93 bytes Focused regression false 93 B
004935 regression/F0 ending 93 bytes Focused regression false 93 B
004936 regression/U+00E9 ending 93 bytes Focused regression true 93 B
004937 regression/U+20AC ending 93 bytes Focused regression true 93 B
004938 regression/U+1F600 ending 93 bytes Focused regression true 93 B
004939 regression/C3 ending 94 bytes Focused regression false 94 B
004940 regression/E2 82 ending 94 bytes Focused regression false 94 B
004941 regression/E2 ending 94 bytes Focused regression false 94 B
004942 regression/F0 9F 98 ending 94 bytes Focused regression false 94 B
004943 regression/F0 9F ending 94 bytes Focused regression false 94 B
004944 regression/F4 8F BF ending 94 bytes Focused regression false 94 B
004945 regression/F0 ending 94 bytes Focused regression false 94 B
004946 regression/U+00E9 ending 94 bytes Focused regression true 94 B
004947 regression/U+20AC ending 94 bytes Focused regression true 94 B
004948 regression/U+1F600 ending 94 bytes Focused regression true 94 B
004949 regression/C3 ending 95 bytes Focused regression false 95 B
004950 regression/E2 82 ending 95 bytes Focused regression false 95 B
004951 regression/E2 ending 95 bytes Focused regression false 95 B
004952 regression/F0 9F 98 ending 95 bytes Focused regression false 95 B
004953 regression/F0 9F ending 95 bytes Focused regression false 95 B
004954 regression/F4 8F BF ending 95 bytes Focused regression false 95 B
004955 regression/F0 ending 95 bytes Focused regression false 95 B
004956 regression/U+00E9 ending 95 bytes Focused regression true 95 B
004957 regression/U+20AC ending 95 bytes Focused regression true 95 B
004958 regression/U+1F600 ending 95 bytes Focused regression true 95 B
004959 regression/C3 ending 96 bytes Focused regression false 96 B
004960 regression/E2 82 ending 96 bytes Focused regression false 96 B
004961 regression/E2 ending 96 bytes Focused regression false 96 B
004962 regression/F0 9F 98 ending 96 bytes Focused regression false 96 B
004963 regression/F0 9F ending 96 bytes Focused regression false 96 B
004964 regression/F4 8F BF ending 96 bytes Focused regression false 96 B
004965 regression/F0 ending 96 bytes Focused regression false 96 B
004966 regression/U+00E9 ending 96 bytes Focused regression true 96 B
004967 regression/U+20AC ending 96 bytes Focused regression true 96 B
004968 regression/U+1F600 ending 96 bytes Focused regression true 96 B
004969 regression/C3 ending 97 bytes Focused regression false 97 B
004970 regression/E2 82 ending 97 bytes Focused regression false 97 B
004971 regression/E2 ending 97 bytes Focused regression false 97 B
004972 regression/F0 9F 98 ending 97 bytes Focused regression false 97 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.