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,925 of 7,246 cases · 1,057 true · 868 false

Case Name Expected Note Size
007121 generated/1865 Generated false Seeded random text, mutation: insert byte. 3 B
007122 generated/1866 Generated false Seeded random text, mutation: delete byte. 56 B
007123 generated/1867 Generated true Seeded random text, mutation: none. 10 B
007124 generated/1868 Generated false Seeded random text, mutation: splice bad sequence. 53 B
007125 generated/1869 Generated true Seeded random text, mutation: none. 54 B
007126 generated/1870 Generated false Seeded random text, mutation: splice bad sequence. 41 B
007127 generated/1871 Generated false Seeded random text, mutation: splice bad sequence. 119 B
007128 generated/1873 Generated false Seeded random text, mutation: flip bit. 65 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
007131 generated/1876 Generated false Seeded random text, mutation: truncate. 60 B
007132 generated/1877 Generated false Seeded random text, mutation: insert byte. 392 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
007135 generated/1880 Generated false Seeded random text, mutation: insert byte. 29 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
007139 generated/1884 Generated false Seeded random text, mutation: truncate. 37 B
007140 generated/1885 Generated false Seeded random text, mutation: splice bad sequence. 229 B
007141 generated/1886 Generated false Seeded random text, mutation: truncate. 50 B
007142 generated/1887 Generated false Seeded random text, mutation: splice bad sequence. 154 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
007149 generated/1896 Generated false Seeded random text, mutation: delete byte. 344 B
007150 generated/1897 Generated true Seeded random text, mutation: flip bit. 47 B
007151 generated/1898 Generated true Seeded random text, mutation: none. 355 B
007152 generated/1899 Generated true Seeded random text, mutation: replace byte. 64 B
007153 generated/1900 Generated true Seeded random text, mutation: none. 11 B
007154 generated/1901 Generated false Seeded random text, mutation: splice bad sequence. 19 B
007155 generated/1902 Generated true Seeded random text, mutation: flip bit. 248 B
007156 generated/1903 Generated true Seeded random text, mutation: none. 22 B
007157 generated/1905 Generated true Seeded random text, mutation: flip bit. 94 B
007158 generated/1906 Generated false Seeded random text, mutation: insert byte. 79 B
007159 generated/1907 Generated false Seeded random text, mutation: replace byte. 202 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
007162 generated/1910 Generated true Seeded random text, mutation: flip bit. 14 B
007163 generated/1912 Generated true Seeded random text, mutation: none. 66 B
007164 generated/1913 Generated false Seeded random text, mutation: insert byte. 284 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
007168 generated/1917 Generated false Seeded random text, mutation: replace byte. 28 B
007169 generated/1918 Generated false Seeded random text, mutation: insert byte. 15 B
007170 generated/1919 Generated false Seeded random text, mutation: splice bad sequence. 354 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.