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 of 6,835 cases

Case Name Expected Note Size
004826 raw-cr-lf-nul Focused regression a␍␊b␍c␀d Raw CR and NUL are copied, not normalised 8 B
004827 reference-then-raw Focused regression &␀A␍&␍ 12 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.