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
006650 generated/1377 Generated false Seeded random text, mutation: flip bit. 41 B
006651 generated/1378 Generated false Seeded random text, mutation: flip bit. 76 B
006652 generated/1379 Generated true Seeded random text, mutation: none. 376 B
006653 generated/1380 Generated true Seeded random text, mutation: truncate. 69 B
006654 generated/1381 Generated true Seeded random text, mutation: truncate. 4 B
006655 generated/1382 Generated false Seeded random text, mutation: splice bad sequence. 8 B
006656 generated/1383 Generated false Seeded random text, mutation: replace byte. 25 B
006657 generated/1384 Generated true Seeded random text, mutation: truncate. 20 B
006658 generated/1385 Generated true Seeded random text, mutation: flip bit. 296 B
006659 generated/1386 Generated true Seeded random text, mutation: none. 342 B
006660 generated/1387 Generated false Seeded random text, mutation: delete byte. 37 B
006661 generated/1388 Generated true Seeded random text, mutation: none. 384 B
006662 generated/1389 Generated false Seeded random text, mutation: replace byte. 21 B
006663 generated/1390 Generated false Seeded random text, mutation: splice bad sequence. 4 B
006664 generated/1391 Generated false Seeded random text, mutation: delete byte. 12 B
006665 generated/1392 Generated false Seeded random text, mutation: insert byte. 28 B
006666 generated/1393 Generated false Seeded random text, mutation: truncate. 26 B
006667 generated/1395 Generated true Seeded random text, mutation: delete byte. 11 B
006668 generated/1396 Generated true Seeded random text, mutation: none. 51 B
006669 generated/1397 Generated true Seeded random text, mutation: delete byte. 11 B
006670 generated/1398 Generated true Seeded random text, mutation: none. 327 B
006671 generated/1399 Generated false Seeded random text, mutation: replace byte. 10 B
006672 generated/1400 Generated true Seeded random text, mutation: none. 33 B
006673 generated/1401 Generated true Seeded random text, mutation: none. 12 B
006674 generated/1402 Generated true Seeded random text, mutation: flip bit. 382 B
006675 generated/1403 Generated true Seeded random text, mutation: none. 88 B
006676 generated/1404 Generated true Seeded random text, mutation: none. 8 B
006677 generated/1405 Generated false Seeded random text, mutation: truncate. 52 B
006678 generated/1406 Generated false Seeded random text, mutation: truncate. 2 B
006679 generated/1407 Generated false Seeded random text, mutation: splice bad sequence. 14 B
006680 generated/1408 Generated false Seeded random text, mutation: splice bad sequence. 14 B
006681 generated/1409 Generated true Seeded random text, mutation: truncate. 4 B
006682 generated/1410 Generated false Seeded random text, mutation: delete byte. 360 B
006683 generated/1411 Generated false Seeded random text, mutation: replace byte. 94 B
006684 generated/1412 Generated false Seeded random text, mutation: delete byte. 66 B
006685 generated/1413 Generated false Seeded random text, mutation: splice bad sequence. 3 B
006686 generated/1414 Generated true Seeded random text, mutation: none. 310 B
006687 generated/1416 Generated true Seeded random text, mutation: flip bit. 71 B
006688 generated/1417 Generated false Seeded random text, mutation: replace byte. 15 B
006689 generated/1418 Generated false Seeded random text, mutation: replace byte. 4 B
006690 generated/1419 Generated false Seeded random text, mutation: insert byte. 14 B
006691 generated/1420 Generated true Seeded random text, mutation: none. 11 B
006692 generated/1421 Generated true Seeded random text, mutation: none. 29 B
006693 generated/1422 Generated false Seeded random text, mutation: delete byte. 378 B
006694 generated/1423 Generated true Seeded random text, mutation: none. 381 B
006695 generated/1424 Generated true Seeded random text, mutation: none. 4 B
006696 generated/1425 Generated true Seeded random text, mutation: none. 395 B
006697 generated/1426 Generated false Seeded random text, mutation: truncate. 12 B
006698 generated/1427 Generated true Seeded random text, mutation: none. 6 B
006699 generated/1428 Generated true Seeded random text, mutation: truncate. 63 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.