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
006550 generated/1272 Generated true Seeded random text, mutation: none. 268 B
006551 generated/1273 Generated false Seeded random text, mutation: flip bit. 79 B
006552 generated/1274 Generated false Seeded random text, mutation: delete byte. 162 B
006553 generated/1275 Generated true Seeded random text, mutation: none. 9 B
006554 generated/1276 Generated false Seeded random text, mutation: delete byte. 321 B
006555 generated/1277 Generated false Seeded random text, mutation: truncate. 3 B
006556 generated/1278 Generated true Seeded random text, mutation: none. 70 B
006557 generated/1280 Generated true Seeded random text, mutation: none. 9 B
006558 generated/1281 Generated true Seeded random text, mutation: none. 51 B
006559 generated/1282 Generated false Seeded random text, mutation: truncate. 96 B
006560 generated/1283 Generated false Seeded random text, mutation: delete byte. 7 B
006561 generated/1284 Generated true Seeded random text, mutation: none. 35 B
006562 generated/1285 Generated false Seeded random text, mutation: delete byte. 281 B
006563 generated/1286 Generated false Seeded random text, mutation: splice bad sequence. 343 B
006564 generated/1287 Generated false Seeded random text, mutation: replace byte. 17 B
006565 generated/1288 Generated true Seeded random text, mutation: flip bit. 11 B
006566 generated/1289 Generated true Seeded random text, mutation: none. 296 B
006567 generated/1290 Generated true Seeded random text, mutation: none. 37 B
006568 generated/1291 Generated false Seeded random text, mutation: splice bad sequence. 6 B
006569 generated/1292 Generated true Seeded random text, mutation: none. 36 B
006570 generated/1293 Generated false Seeded random text, mutation: insert byte. 370 B
006571 generated/1294 Generated true Seeded random text, mutation: flip bit. 6 B
006572 generated/1295 Generated true Seeded random text, mutation: none. 219 B
006573 generated/1296 Generated true Seeded random text, mutation: none. 160 B
006574 generated/1297 Generated true Seeded random text, mutation: none. 298 B
006575 generated/1298 Generated true Seeded random text, mutation: none. 3 B
006576 generated/1299 Generated false Seeded random text, mutation: replace byte. 15 B
006577 generated/1300 Generated true Seeded random text, mutation: truncate. 21 B
006578 generated/1301 Generated false Seeded random text, mutation: delete byte. 63 B
006579 generated/1302 Generated false Seeded random text, mutation: insert byte. 52 B
006580 generated/1303 Generated true Seeded random text, mutation: none. 4 B
006581 generated/1304 Generated true Seeded random text, mutation: none. 107 B
006582 generated/1305 Generated false Seeded random text, mutation: truncate. 48 B
006583 generated/1306 Generated true Seeded random text, mutation: replace byte. 184 B
006584 generated/1307 Generated false Seeded random text, mutation: insert byte. 59 B
006585 generated/1308 Generated true Seeded random text, mutation: none. 7 B
006586 generated/1309 Generated true Seeded random text, mutation: none. 185 B
006587 generated/1310 Generated true Seeded random text, mutation: none. 246 B
006588 generated/1311 Generated false Seeded random text, mutation: splice bad sequence. 15 B
006589 generated/1312 Generated false Seeded random text, mutation: flip bit. 10 B
006590 generated/1314 Generated true Seeded random text, mutation: none. 358 B
006591 generated/1315 Generated true Seeded random text, mutation: none. 2 B
006592 generated/1316 Generated false Seeded random text, mutation: replace byte. 5 B
006593 generated/1317 Generated false Seeded random text, mutation: flip bit. 4 B
006594 generated/1318 Generated true Seeded random text, mutation: none. 165 B
006595 generated/1319 Generated true Seeded random text, mutation: none. 42 B
006596 generated/1320 Generated true Seeded random text, mutation: none. 371 B
006597 generated/1321 Generated false Seeded random text, mutation: delete byte. 304 B
006598 generated/1322 Generated true Seeded random text, mutation: flip bit. 19 B
006599 generated/1323 Generated true Seeded random text, mutation: none. 211 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.