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

1,287 of 7,246 cases · 383 true · 904 false

Case Name Expected Note Size
004723 regression/F0 9F ending 72 bytes Focused regression false 72 B
004724 regression/F4 8F BF ending 72 bytes Focused regression false 72 B
004725 regression/F0 ending 72 bytes Focused regression false 72 B
004726 regression/U+00E9 ending 72 bytes Focused regression true 72 B
004727 regression/U+20AC ending 72 bytes Focused regression true 72 B
004728 regression/U+1F600 ending 72 bytes Focused regression true 72 B
004729 regression/C3 ending 73 bytes Focused regression false 73 B
004730 regression/E2 82 ending 73 bytes Focused regression false 73 B
004731 regression/E2 ending 73 bytes Focused regression false 73 B
004732 regression/F0 9F 98 ending 73 bytes Focused regression false 73 B
004733 regression/F0 9F ending 73 bytes Focused regression false 73 B
004734 regression/F4 8F BF ending 73 bytes Focused regression false 73 B
004735 regression/F0 ending 73 bytes Focused regression false 73 B
004736 regression/U+00E9 ending 73 bytes Focused regression true 73 B
004737 regression/U+20AC ending 73 bytes Focused regression true 73 B
004738 regression/U+1F600 ending 73 bytes Focused regression true 73 B
004739 regression/C3 ending 74 bytes Focused regression false 74 B
004740 regression/E2 82 ending 74 bytes Focused regression false 74 B
004741 regression/E2 ending 74 bytes Focused regression false 74 B
004742 regression/F0 9F 98 ending 74 bytes Focused regression false 74 B
004743 regression/F0 9F ending 74 bytes Focused regression false 74 B
004744 regression/F4 8F BF ending 74 bytes Focused regression false 74 B
004745 regression/F0 ending 74 bytes Focused regression false 74 B
004746 regression/U+00E9 ending 74 bytes Focused regression true 74 B
004747 regression/U+20AC ending 74 bytes Focused regression true 74 B
004748 regression/U+1F600 ending 74 bytes Focused regression true 74 B
004749 regression/C3 ending 75 bytes Focused regression false 75 B
004750 regression/E2 82 ending 75 bytes Focused regression false 75 B
004751 regression/E2 ending 75 bytes Focused regression false 75 B
004752 regression/F0 9F 98 ending 75 bytes Focused regression false 75 B
004753 regression/F0 9F ending 75 bytes Focused regression false 75 B
004754 regression/F4 8F BF ending 75 bytes Focused regression false 75 B
004755 regression/F0 ending 75 bytes Focused regression false 75 B
004756 regression/U+00E9 ending 75 bytes Focused regression true 75 B
004757 regression/U+20AC ending 75 bytes Focused regression true 75 B
004758 regression/U+1F600 ending 75 bytes Focused regression true 75 B
004759 regression/C3 ending 76 bytes Focused regression false 76 B
004760 regression/E2 82 ending 76 bytes Focused regression false 76 B
004761 regression/E2 ending 76 bytes Focused regression false 76 B
004762 regression/F0 9F 98 ending 76 bytes Focused regression false 76 B
004763 regression/F0 9F ending 76 bytes Focused regression false 76 B
004764 regression/F4 8F BF ending 76 bytes Focused regression false 76 B
004765 regression/F0 ending 76 bytes Focused regression false 76 B
004766 regression/U+00E9 ending 76 bytes Focused regression true 76 B
004767 regression/U+20AC ending 76 bytes Focused regression true 76 B
004768 regression/U+1F600 ending 76 bytes Focused regression true 76 B
004769 regression/C3 ending 77 bytes Focused regression false 77 B
004770 regression/E2 82 ending 77 bytes Focused regression false 77 B
004771 regression/E2 ending 77 bytes Focused regression false 77 B
004772 regression/F0 9F 98 ending 77 bytes Focused regression false 77 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.