Compliance cases

These are the 6,835 inputs a submission must decode. Each output must match the expected text byte for byte. You can run the suite without reading it, or open any case to see its input and expected output.

Run the full compliance suite locally. Replace your-component.wasm with your compiled component. Download the suite

curl -fLo unescape_html.comply.wasm https://calculated.world/comply/unescape_html.wasm
qipx comply your-component.wasm --with unescape_html.comply.wasm
Clear

2,241 of 6,835 cases

Case Name Expected Note Size
004681 control-18-decimal Focused regression ␘ Kept, unlike CPython's html.unescape 5 B
004682 control-18-hex Focused regression ␘ Kept, unlike CPython's html.unescape 6 B
004683 control-19-decimal Focused regression ␙ Kept, unlike CPython's html.unescape 5 B
004684 control-19-hex Focused regression ␙ Kept, unlike CPython's html.unescape 6 B
004685 control-1a-decimal Focused regression ␚ Kept, unlike CPython's html.unescape 5 B
004686 control-1a-hex Focused regression ␚ Kept, unlike CPython's html.unescape 6 B
004687 control-1b-decimal Focused regression ␛ Kept, unlike CPython's html.unescape 5 B
004688 control-1b-hex Focused regression ␛ Kept, unlike CPython's html.unescape 6 B
004689 control-1c-decimal Focused regression ␜ Kept, unlike CPython's html.unescape 5 B
004690 control-1c-hex Focused regression ␜ Kept, unlike CPython's html.unescape 6 B
004691 control-1d-decimal Focused regression ␝ Kept, unlike CPython's html.unescape 5 B
004692 control-1d-hex Focused regression ␝ Kept, unlike CPython's html.unescape 6 B
004693 control-1e-decimal Focused regression ␞ Kept, unlike CPython's html.unescape 5 B
004694 control-1e-hex Focused regression ␞ Kept, unlike CPython's html.unescape 6 B
004695 control-1f-decimal Focused regression ␟ Kept, unlike CPython's html.unescape 5 B
004696 control-1f-hex Focused regression ␟ Kept, unlike CPython's html.unescape 6 B
004697 control-7f-decimal Focused regression ␡ Kept, unlike CPython's html.unescape 6 B
004698 control-7f-hex Focused regression ␡ Kept, unlike CPython's html.unescape 6 B
004699 control-81-decimal Focused regression ⟨U+0081⟩ Kept, unlike CPython's html.unescape 6 B
004700 control-81-hex Focused regression ⟨U+0081⟩ Kept, unlike CPython's html.unescape 6 B
004701 control-8d-decimal Focused regression ⟨U+008D⟩ Kept, unlike CPython's html.unescape 6 B
004702 control-8d-hex Focused regression ⟨U+008D⟩ Kept, unlike CPython's html.unescape 6 B
004703 control-8f-decimal Focused regression ⟨U+008F⟩ Kept, unlike CPython's html.unescape 6 B
004704 control-8f-hex Focused regression ⟨U+008F⟩ Kept, unlike CPython's html.unescape 6 B
004705 control-90-decimal Focused regression ⟨U+0090⟩ Kept, unlike CPython's html.unescape 6 B
004706 control-90-hex Focused regression ⟨U+0090⟩ Kept, unlike CPython's html.unescape 6 B
004707 control-9d-decimal Focused regression ⟨U+009D⟩ Kept, unlike CPython's html.unescape 6 B
004708 control-9d-hex Focused regression ⟨U+009D⟩ Kept, unlike CPython's html.unescape 6 B
004709 noncharacter-fdd0 Focused regression ⟨U+FDD0⟩ Kept, unlike CPython's html.unescape 8 B
004710 noncharacter-fdef Focused regression ⟨U+FDEF⟩ Kept, unlike CPython's html.unescape 8 B
004711 noncharacter-fffe Focused regression ⟨U+FFFE⟩ Kept, unlike CPython's html.unescape 8 B
004712 noncharacter-ffff Focused regression ⟨U+FFFF⟩ Kept, unlike CPython's html.unescape 8 B
004713 noncharacter-1fffe Focused regression ⟨U+1FFFE⟩ Kept, unlike CPython's html.unescape 9 B
004714 noncharacter-1ffff Focused regression ⟨U+1FFFF⟩ Kept, unlike CPython's html.unescape 9 B
004715 noncharacter-10fffe Focused regression ⟨U+10FFFE⟩ Kept, unlike CPython's html.unescape 10 B
004716 noncharacter-10ffff Focused regression ⟨U+10FFFF⟩ Kept, unlike CPython's html.unescape 10 B
004717 c1-80-decimal Focused regression € Windows-1252 remapping without ; 5 B
004718 c1-81-decimal Focused regression ⟨U+0081⟩ Windows-1252 remapping without ; 5 B
004719 c1-82-decimal Focused regression ‚ Windows-1252 remapping without ; 5 B
004720 c1-83-decimal Focused regression ƒ Windows-1252 remapping without ; 5 B
004721 c1-84-decimal Focused regression „ Windows-1252 remapping without ; 5 B
004722 c1-85-decimal Focused regression … Windows-1252 remapping without ; 5 B
004723 c1-86-decimal Focused regression † Windows-1252 remapping without ; 5 B
004724 c1-87-decimal Focused regression ‡ Windows-1252 remapping without ; 5 B
004725 c1-88-decimal Focused regression ˆ Windows-1252 remapping without ; 5 B
004726 c1-89-decimal Focused regression ‰ Windows-1252 remapping without ; 5 B
004727 c1-8a-decimal Focused regression Š Windows-1252 remapping without ; 5 B
004728 c1-8b-decimal Focused regression ‹ Windows-1252 remapping without ; 5 B
004729 c1-8c-decimal Focused regression Œ Windows-1252 remapping without ; 5 B
004730 c1-8d-decimal Focused regression ⟨U+008D⟩ Windows-1252 remapping without ; 5 B

Where these rules come from

Expected outputs come from Python’s html.unescape, changed to keep references to controls and noncharacters the way the WHATWG tokenizer does.