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

764 of 7,246 cases · 764 true · 0 false

Case Name Expected Note Size
007083 generated/1827 Generated true Seeded random text, mutation: none. 156 B
007087 generated/1831 Generated true Seeded random text, mutation: none. 387 B
007093 generated/1837 Generated true Seeded random text, mutation: none. 12 B
007094 generated/1838 Generated true Seeded random text, mutation: none. 60 B
007097 generated/1841 Generated true Seeded random text, mutation: none. 283 B
007098 generated/1842 Generated true Seeded random text, mutation: none. 5 B
007100 generated/1844 Generated true Seeded random text, mutation: none. 231 B
007101 generated/1845 Generated true Seeded random text, mutation: none. 317 B
007105 generated/1849 Generated true Seeded random text, mutation: none. 112 B
007108 generated/1852 Generated true Seeded random text, mutation: none. 48 B
007113 generated/1857 Generated true Seeded random text, mutation: none. 351 B
007119 generated/1863 Generated true Seeded random text, mutation: none. 89 B
007123 generated/1867 Generated true Seeded random text, mutation: none. 10 B
007125 generated/1869 Generated true Seeded random text, mutation: none. 54 B
007129 generated/1874 Generated true Seeded random text, mutation: none. 40 B
007130 generated/1875 Generated true Seeded random text, mutation: none. 50 B
007133 generated/1878 Generated true Seeded random text, mutation: none. 10 B
007134 generated/1879 Generated true Seeded random text, mutation: none. 9 B
007136 generated/1881 Generated true Seeded random text, mutation: none. 4 B
007137 generated/1882 Generated true Seeded random text, mutation: none. 229 B
007138 generated/1883 Generated true Seeded random text, mutation: none. 5 B
007143 generated/1889 Generated true Seeded random text, mutation: none. 362 B
007144 generated/1890 Generated true Seeded random text, mutation: none. 33 B
007145 generated/1891 Generated true Seeded random text, mutation: none. 12 B
007146 generated/1892 Generated true Seeded random text, mutation: none. 5 B
007147 generated/1894 Generated true Seeded random text, mutation: none. 189 B
007148 generated/1895 Generated true Seeded random text, mutation: none. 46 B
007151 generated/1898 Generated true Seeded random text, mutation: none. 355 B
007153 generated/1900 Generated true Seeded random text, mutation: none. 11 B
007156 generated/1903 Generated true Seeded random text, mutation: none. 22 B
007160 generated/1908 Generated true Seeded random text, mutation: none. 273 B
007161 generated/1909 Generated true Seeded random text, mutation: none. 241 B
007163 generated/1912 Generated true Seeded random text, mutation: none. 66 B
007165 generated/1914 Generated true Seeded random text, mutation: none. 49 B
007166 generated/1915 Generated true Seeded random text, mutation: none. 71 B
007167 generated/1916 Generated true Seeded random text, mutation: none. 235 B
007174 generated/1923 Generated true Seeded random text, mutation: none. 57 B
007175 generated/1924 Generated true Seeded random text, mutation: none. 44 B
007177 generated/1926 Generated true Seeded random text, mutation: none. 57 B
007178 generated/1927 Generated true Seeded random text, mutation: none. 13 B
007181 generated/1930 Generated true Seeded random text, mutation: none. 343 B
007182 generated/1931 Generated true Seeded random text, mutation: none. 67 B
007183 generated/1932 Generated true Seeded random text, mutation: none. 17 B
007184 generated/1933 Generated true Seeded random text, mutation: none. 358 B
007186 generated/1936 Generated true Seeded random text, mutation: none. 14 B
007188 generated/1938 Generated true Seeded random text, mutation: none. 27 B
007190 generated/1940 Generated true Seeded random text, mutation: none. 218 B
007192 generated/1943 Generated true Seeded random text, mutation: none. 12 B
007195 generated/1946 Generated true Seeded random text, mutation: none. 81 B
007200 generated/1952 Generated true Seeded random text, mutation: none. 5 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.