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
006702 generated/1431 Generated true Seeded random text, mutation: none. 12 B
006704 generated/1433 Generated true Seeded random text, mutation: none. 14 B
006705 generated/1434 Generated true Seeded random text, mutation: none. 31 B
006712 generated/1442 Generated true Seeded random text, mutation: none. 5 B
006713 generated/1443 Generated true Seeded random text, mutation: none. 276 B
006717 generated/1448 Generated true Seeded random text, mutation: none. 10 B
006721 generated/1452 Generated true Seeded random text, mutation: none. 39 B
006723 generated/1454 Generated true Seeded random text, mutation: none. 166 B
006724 generated/1455 Generated true Seeded random text, mutation: none. 83 B
006725 generated/1456 Generated true Seeded random text, mutation: none. 345 B
006727 generated/1458 Generated true Seeded random text, mutation: none. 30 B
006728 generated/1459 Generated true Seeded random text, mutation: none. 80 B
006731 generated/1462 Generated true Seeded random text, mutation: none. 14 B
006733 generated/1464 Generated true Seeded random text, mutation: none. 28 B
006737 generated/1468 Generated true Seeded random text, mutation: none. 8 B
006741 generated/1472 Generated true Seeded random text, mutation: none. 14 B
006743 generated/1474 Generated true Seeded random text, mutation: none. 15 B
006744 generated/1475 Generated true Seeded random text, mutation: none. 9 B
006745 generated/1476 Generated true Seeded random text, mutation: none. 370 B
006746 generated/1478 Generated true Seeded random text, mutation: none. 4 B
006748 generated/1480 Generated true Seeded random text, mutation: none. 43 B
006756 generated/1488 Generated true Seeded random text, mutation: none. 307 B
006759 generated/1491 Generated true Seeded random text, mutation: none. 13 B
006761 generated/1493 Generated true Seeded random text, mutation: none. 6 B
006767 generated/1499 Generated true Seeded random text, mutation: none. 14 B
006771 generated/1503 Generated true Seeded random text, mutation: none. 204 B
006775 generated/1508 Generated true Seeded random text, mutation: none. 12 B
006778 generated/1511 Generated true Seeded random text, mutation: none. 16 B
006787 generated/1520 Generated true Seeded random text, mutation: none. 57 B
006788 generated/1522 Generated true Seeded random text, mutation: none. 27 B
006790 generated/1525 Generated true Seeded random text, mutation: none. 4 B
006792 generated/1527 Generated true Seeded random text, mutation: none. 86 B
006797 generated/1533 Generated true Seeded random text, mutation: none. 16 B
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
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
006814 generated/1550 Generated true Seeded random text, mutation: none. 270 B
006819 generated/1556 Generated true Seeded random text, mutation: none. 33 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
006831 generated/1568 Generated true Seeded random text, mutation: none. 296 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

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.