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,161 of 7,246 cases · 619 true · 542 false

Case Name Expected Note Size
004947 regression/U+20AC ending 94 bytes Focused regression true 94 B
004950 regression/E2 82 ending 95 bytes Focused regression false 95 B
004951 regression/E2 ending 95 bytes Focused regression false 95 B
004957 regression/U+20AC ending 95 bytes Focused regression true 95 B
004960 regression/E2 82 ending 96 bytes Focused regression false 96 B
004961 regression/E2 ending 96 bytes Focused regression false 96 B
004967 regression/U+20AC ending 96 bytes Focused regression true 96 B
004970 regression/E2 82 ending 97 bytes Focused regression false 97 B
004971 regression/E2 ending 97 bytes Focused regression false 97 B
004977 regression/U+20AC ending 97 bytes Focused regression true 97 B
004980 regression/E2 82 ending 98 bytes Focused regression false 98 B
004981 regression/E2 ending 98 bytes Focused regression false 98 B
004987 regression/U+20AC ending 98 bytes Focused regression true 98 B
004990 regression/E2 82 ending 99 bytes Focused regression false 99 B
004991 regression/E2 ending 99 bytes Focused regression false 99 B
004997 regression/U+20AC ending 99 bytes Focused regression true 99 B
005000 regression/E2 82 ending 100 bytes Focused regression false 100 B
005001 regression/E2 ending 100 bytes Focused regression false 100 B
005007 regression/U+20AC ending 100 bytes Focused regression true 100 B
005010 regression/E2 82 ending 101 bytes Focused regression false 101 B
005011 regression/E2 ending 101 bytes Focused regression false 101 B
005017 regression/U+20AC ending 101 bytes Focused regression true 101 B
005020 regression/E2 82 ending 102 bytes Focused regression false 102 B
005021 regression/E2 ending 102 bytes Focused regression false 102 B
005027 regression/U+20AC ending 102 bytes Focused regression true 102 B
005030 regression/E2 82 ending 103 bytes Focused regression false 103 B
005031 regression/E2 ending 103 bytes Focused regression false 103 B
005037 regression/U+20AC ending 103 bytes Focused regression true 103 B
005040 regression/E2 82 ending 104 bytes Focused regression false 104 B
005041 regression/E2 ending 104 bytes Focused regression false 104 B
005047 regression/U+20AC ending 104 bytes Focused regression true 104 B
005050 regression/E2 82 ending 105 bytes Focused regression false 105 B
005051 regression/E2 ending 105 bytes Focused regression false 105 B
005057 regression/U+20AC ending 105 bytes Focused regression true 105 B
005060 regression/E2 82 ending 106 bytes Focused regression false 106 B
005061 regression/E2 ending 106 bytes Focused regression false 106 B
005067 regression/U+20AC ending 106 bytes Focused regression true 106 B
005070 regression/E2 82 ending 107 bytes Focused regression false 107 B
005071 regression/E2 ending 107 bytes Focused regression false 107 B
005077 regression/U+20AC ending 107 bytes Focused regression true 107 B
005080 regression/E2 82 ending 108 bytes Focused regression false 108 B
005081 regression/E2 ending 108 bytes Focused regression false 108 B
005087 regression/U+20AC ending 108 bytes Focused regression true 108 B
005090 regression/E2 82 ending 109 bytes Focused regression false 109 B
005091 regression/E2 ending 109 bytes Focused regression false 109 B
005097 regression/U+20AC ending 109 bytes Focused regression true 109 B
005100 regression/E2 82 ending 110 bytes Focused regression false 110 B
005101 regression/E2 ending 110 bytes Focused regression false 110 B
005107 regression/U+20AC ending 110 bytes Focused regression true 110 B
005110 regression/E2 82 ending 111 bytes Focused regression false 111 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.