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

All 7,246 cases · 2,791 true · 4,455 false

Case Name Expected Note Size
006800 generated/1536 Generated true Seeded random text, mutation: none. 77 B
006801 generated/1537 Generated true Seeded random text, mutation: none. 4 B
006802 generated/1538 Generated true Seeded random text, mutation: none. 110 B
006803 generated/1539 Generated false Seeded random text, mutation: replace byte. 10 B
006804 generated/1540 Generated true Seeded random text, mutation: replace byte. 14 B
006805 generated/1541 Generated false Seeded random text, mutation: replace byte. 67 B
006806 generated/1542 Generated false Seeded random text, mutation: replace byte. 349 B
006807 generated/1543 Generated false Seeded random text, mutation: delete byte. 40 B
006808 generated/1544 Generated true Seeded random text, mutation: none. 8 B
006809 generated/1545 Generated true Seeded random text, mutation: none. 270 B
006810 generated/1546 Generated true Seeded random text, mutation: none. 34 B
006811 generated/1547 Generated false Seeded random text, mutation: splice bad sequence. 60 B
006812 generated/1548 Generated false Seeded random text, mutation: delete byte. 5 B
006813 generated/1549 Generated false Seeded random text, mutation: truncate. 25 B
006814 generated/1550 Generated true Seeded random text, mutation: none. 270 B
006815 generated/1551 Generated false Seeded random text, mutation: truncate. 35 B
006816 generated/1553 Generated true Seeded random text, mutation: replace byte. 19 B
006817 generated/1554 Generated false Seeded random text, mutation: replace byte. 2 B
006818 generated/1555 Generated false Seeded random text, mutation: truncate. 193 B
006819 generated/1556 Generated true Seeded random text, mutation: none. 33 B
006820 generated/1557 Generated false Seeded random text, mutation: insert byte. 350 B
006821 generated/1558 Generated false Seeded random text, mutation: insert byte. 11 B
006822 generated/1559 Generated false Seeded random text, mutation: insert byte. 338 B
006823 generated/1560 Generated true Seeded random text, mutation: delete byte. 365 B
006824 generated/1561 Generated false Seeded random text, mutation: replace byte. 20 B
006825 generated/1562 Generated true Seeded random text, mutation: none. 39 B
006826 generated/1563 Generated true Seeded random text, mutation: none. 322 B
006827 generated/1564 Generated true Seeded random text, mutation: none. 253 B
006828 generated/1565 Generated true Seeded random text, mutation: none. 59 B
006829 generated/1566 Generated true Seeded random text, mutation: none. 13 B
006830 generated/1567 Generated false Seeded random text, mutation: splice bad sequence. 148 B
006831 generated/1568 Generated true Seeded random text, mutation: none. 296 B
006832 generated/1569 Generated false Seeded random text, mutation: splice bad sequence. 14 B
006833 generated/1570 Generated true Seeded random text, mutation: none. 68 B
006834 generated/1571 Generated true Seeded random text, mutation: none. 197 B
006835 generated/1572 Generated true Seeded random text, mutation: none. 99 B
006836 generated/1573 Generated true Seeded random text, mutation: none. 35 B
006837 generated/1574 Generated false Seeded random text, mutation: replace byte. 12 B
006838 generated/1575 Generated false Seeded random text, mutation: insert byte. 52 B
006839 generated/1576 Generated true Seeded random text, mutation: none. 33 B
006840 generated/1577 Generated false Seeded random text, mutation: splice bad sequence. 52 B
006841 generated/1578 Generated false Seeded random text, mutation: insert byte. 2 B
006842 generated/1579 Generated true Seeded random text, mutation: none. 20 B
006843 generated/1580 Generated false Seeded random text, mutation: insert byte. 3 B
006844 generated/1581 Generated true Seeded random text, mutation: none. 315 B
006845 generated/1582 Generated false Seeded random text, mutation: splice bad sequence. 204 B
006846 generated/1583 Generated true Seeded random text, mutation: none. 60 B
006847 generated/1584 Generated true Seeded random text, mutation: none. 6 B
006848 generated/1585 Generated true Seeded random text, mutation: none. 290 B
006849 generated/1586 Generated false Seeded random text, mutation: insert byte. 325 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.