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
006955 generated/1698 Generated true Seeded random text, mutation: none. 255 B
006956 generated/1699 Generated true Seeded random text, mutation: none. 7 B
006957 generated/1700 Generated true Seeded random text, mutation: none. 65 B
006959 generated/1702 Generated true Seeded random text, mutation: none. 16 B
006964 generated/1707 Generated true Seeded random text, mutation: none. 12 B
006965 generated/1708 Generated true Seeded random text, mutation: none. 4 B
006969 generated/1712 Generated true Seeded random text, mutation: none. 12 B
006972 generated/1715 Generated true Seeded random text, mutation: none. 9 B
006975 generated/1718 Generated true Seeded random text, mutation: none. 8 B
006983 generated/1726 Generated true Seeded random text, mutation: none. 293 B
006984 generated/1727 Generated true Seeded random text, mutation: none. 202 B
006987 generated/1730 Generated true Seeded random text, mutation: none. 15 B
006992 generated/1735 Generated true Seeded random text, mutation: none. 9 B
006995 generated/1738 Generated true Seeded random text, mutation: none. 7 B
006996 generated/1739 Generated true Seeded random text, mutation: none. 134 B
007001 generated/1744 Generated true Seeded random text, mutation: none. 6 B
007002 generated/1745 Generated true Seeded random text, mutation: none. 12 B
007004 generated/1747 Generated true Seeded random text, mutation: none. 12 B
007005 generated/1748 Generated true Seeded random text, mutation: none. 388 B
007006 generated/1749 Generated true Seeded random text, mutation: none. 9 B
007010 generated/1753 Generated true Seeded random text, mutation: none. 11 B
007011 generated/1754 Generated true Seeded random text, mutation: none. 3 B
007013 generated/1756 Generated true Seeded random text, mutation: none. 58 B
007014 generated/1757 Generated true Seeded random text, mutation: none. 167 B
007019 generated/1762 Generated true Seeded random text, mutation: none. 168 B
007020 generated/1763 Generated true Seeded random text, mutation: none. 9 B
007022 generated/1765 Generated true Seeded random text, mutation: none. 7 B
007026 generated/1769 Generated true Seeded random text, mutation: none. 19 B
007027 generated/1770 Generated true Seeded random text, mutation: none. 58 B
007034 generated/1778 Generated true Seeded random text, mutation: none. 6 B
007036 generated/1780 Generated true Seeded random text, mutation: none. 8 B
007043 generated/1787 Generated true Seeded random text, mutation: none. 65 B
007045 generated/1789 Generated true Seeded random text, mutation: none. 216 B
007046 generated/1790 Generated true Seeded random text, mutation: none. 140 B
007047 generated/1791 Generated true Seeded random text, mutation: none. 346 B
007048 generated/1792 Generated true Seeded random text, mutation: none. 298 B
007052 generated/1796 Generated true Seeded random text, mutation: none. 12 B
007053 generated/1797 Generated true Seeded random text, mutation: none. 67 B
007055 generated/1799 Generated true Seeded random text, mutation: none. 365 B
007056 generated/1800 Generated true Seeded random text, mutation: none. 74 B
007061 generated/1805 Generated true Seeded random text, mutation: none. 265 B
007062 generated/1806 Generated true Seeded random text, mutation: none. 264 B
007065 generated/1809 Generated true Seeded random text, mutation: none. 66 B
007067 generated/1811 Generated true Seeded random text, mutation: none. 59 B
007069 generated/1813 Generated true Seeded random text, mutation: none. 245 B
007070 generated/1814 Generated true Seeded random text, mutation: none. 6 B
007071 generated/1815 Generated true Seeded random text, mutation: none. 8 B
007076 generated/1820 Generated true Seeded random text, mutation: none. 6 B
007078 generated/1822 Generated true Seeded random text, mutation: none. 223 B
007079 generated/1823 Generated true Seeded random text, mutation: none. 225 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.