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
006700 generated/1429 Generated true Seeded random text, mutation: none. 14 B
006701 generated/1430 Generated true Seeded random text, mutation: none. 68 B
006702 generated/1431 Generated true Seeded random text, mutation: none. 12 B
006703 generated/1432 Generated false Seeded random text, mutation: splice bad sequence. 33 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
006706 generated/1435 Generated false Seeded random text, mutation: splice bad sequence. 37 B
006707 generated/1436 Generated false Seeded random text, mutation: splice bad sequence. 67 B
006708 generated/1437 Generated false Seeded random text, mutation: delete byte. 75 B
006709 generated/1438 Generated false Seeded random text, mutation: splice bad sequence. 33 B
006710 generated/1439 Generated false Seeded random text, mutation: replace byte. 12 B
006711 generated/1441 Generated false Seeded random text, mutation: insert byte. 4 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
006714 generated/1444 Generated false Seeded random text, mutation: delete byte. 5 B
006715 generated/1445 Generated true Seeded random text, mutation: flip bit. 22 B
006716 generated/1447 Generated false Seeded random text, mutation: insert byte. 393 B
006717 generated/1448 Generated true Seeded random text, mutation: none. 10 B
006718 generated/1449 Generated false Seeded random text, mutation: delete byte. 30 B
006719 generated/1450 Generated true Seeded random text, mutation: truncate. 9 B
006720 generated/1451 Generated true Seeded random text, mutation: truncate. 109 B
006721 generated/1452 Generated true Seeded random text, mutation: none. 39 B
006722 generated/1453 Generated false Seeded random text, mutation: replace byte. 27 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
006726 generated/1457 Generated false Seeded random text, mutation: replace byte. 378 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
006729 generated/1460 Generated true Seeded random text, mutation: replace byte. 132 B
006730 generated/1461 Generated false Seeded random text, mutation: replace byte. 385 B
006731 generated/1462 Generated true Seeded random text, mutation: none. 14 B
006732 generated/1463 Generated false Seeded random text, mutation: splice bad sequence. 32 B
006733 generated/1464 Generated true Seeded random text, mutation: none. 28 B
006734 generated/1465 Generated false Seeded random text, mutation: delete byte. 5 B
006735 generated/1466 Generated true Seeded random text, mutation: flip bit. 28 B
006736 generated/1467 Generated false Seeded random text, mutation: insert byte. 17 B
006737 generated/1468 Generated true Seeded random text, mutation: none. 8 B
006738 generated/1469 Generated false Seeded random text, mutation: splice bad sequence. 15 B
006739 generated/1470 Generated false Seeded random text, mutation: insert byte. 6 B
006740 generated/1471 Generated true Seeded random text, mutation: flip bit. 52 B
006741 generated/1472 Generated true Seeded random text, mutation: none. 14 B
006742 generated/1473 Generated false Seeded random text, mutation: truncate. 69 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
006747 generated/1479 Generated true Seeded random text, mutation: flip bit. 52 B
006748 generated/1480 Generated true Seeded random text, mutation: none. 43 B
006749 generated/1481 Generated false Seeded random text, mutation: delete byte. 400 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.