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
005073 regression/F0 9F ending 107 bytes Focused regression false 107 B
005074 regression/F4 8F BF ending 107 bytes Focused regression false 107 B
005075 regression/F0 ending 107 bytes Focused regression false 107 B
005076 regression/U+00E9 ending 107 bytes Focused regression true 107 B
005077 regression/U+20AC ending 107 bytes Focused regression true 107 B
005078 regression/U+1F600 ending 107 bytes Focused regression true 107 B
005079 regression/C3 ending 108 bytes Focused regression false 108 B
005080 regression/E2 82 ending 108 bytes Focused regression false 108 B
005081 regression/E2 ending 108 bytes Focused regression false 108 B
005082 regression/F0 9F 98 ending 108 bytes Focused regression false 108 B
005083 regression/F0 9F ending 108 bytes Focused regression false 108 B
005084 regression/F4 8F BF ending 108 bytes Focused regression false 108 B
005085 regression/F0 ending 108 bytes Focused regression false 108 B
005086 regression/U+00E9 ending 108 bytes Focused regression true 108 B
005087 regression/U+20AC ending 108 bytes Focused regression true 108 B
005088 regression/U+1F600 ending 108 bytes Focused regression true 108 B
005089 regression/C3 ending 109 bytes Focused regression false 109 B
005090 regression/E2 82 ending 109 bytes Focused regression false 109 B
005091 regression/E2 ending 109 bytes Focused regression false 109 B
005092 regression/F0 9F 98 ending 109 bytes Focused regression false 109 B
005093 regression/F0 9F ending 109 bytes Focused regression false 109 B
005094 regression/F4 8F BF ending 109 bytes Focused regression false 109 B
005095 regression/F0 ending 109 bytes Focused regression false 109 B
005096 regression/U+00E9 ending 109 bytes Focused regression true 109 B
005097 regression/U+20AC ending 109 bytes Focused regression true 109 B
005098 regression/U+1F600 ending 109 bytes Focused regression true 109 B
005099 regression/C3 ending 110 bytes Focused regression false 110 B
005100 regression/E2 82 ending 110 bytes Focused regression false 110 B
005101 regression/E2 ending 110 bytes Focused regression false 110 B
005102 regression/F0 9F 98 ending 110 bytes Focused regression false 110 B
005103 regression/F0 9F ending 110 bytes Focused regression false 110 B
005104 regression/F4 8F BF ending 110 bytes Focused regression false 110 B
005105 regression/F0 ending 110 bytes Focused regression false 110 B
005106 regression/U+00E9 ending 110 bytes Focused regression true 110 B
005107 regression/U+20AC ending 110 bytes Focused regression true 110 B
005108 regression/U+1F600 ending 110 bytes Focused regression true 110 B
005109 regression/C3 ending 111 bytes Focused regression false 111 B
005110 regression/E2 82 ending 111 bytes Focused regression false 111 B
005111 regression/E2 ending 111 bytes Focused regression false 111 B
005112 regression/F0 9F 98 ending 111 bytes Focused regression false 111 B
005113 regression/F0 9F ending 111 bytes Focused regression false 111 B
005114 regression/F4 8F BF ending 111 bytes Focused regression false 111 B
005115 regression/F0 ending 111 bytes Focused regression false 111 B
005116 regression/U+00E9 ending 111 bytes Focused regression true 111 B
005117 regression/U+20AC ending 111 bytes Focused regression true 111 B
005118 regression/U+1F600 ending 111 bytes Focused regression true 111 B
005119 regression/C3 ending 112 bytes Focused regression false 112 B
005120 regression/E2 82 ending 112 bytes Focused regression false 112 B
005121 regression/E2 ending 112 bytes Focused regression false 112 B
005122 regression/F0 9F 98 ending 112 bytes Focused regression false 112 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.