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

All 6,835 cases

Case Name Expected Note Size
000050 html5lib/entities/0059 html5lib-tests ⟨U+008F⟩ Windows-1252 REPLACEMENT CHAR hexadecimal numeric entity. 7 B
000051 html5lib/entities/0060 html5lib-tests ⟨U+0090⟩ Windows-1252 REPLACEMENT CHAR hexadecimal numeric entity. 7 B
000052 html5lib/entities/0061 html5lib-tests ‘ Windows-1252 LEFT SINGLE QUOTATION MARK hexadecimal numeric entity. 7 B
000053 html5lib/entities/0062 html5lib-tests ’ Windows-1252 RIGHT SINGLE QUOTATION MARK hexadecimal numeric entity. 7 B
000054 html5lib/entities/0063 html5lib-tests “ Windows-1252 LEFT DOUBLE QUOTATION MARK hexadecimal numeric entity. 7 B
000055 html5lib/entities/0064 html5lib-tests ” Windows-1252 RIGHT DOUBLE QUOTATION MARK hexadecimal numeric entity. 7 B
000056 html5lib/entities/0065 html5lib-tests • Windows-1252 BULLET hexadecimal numeric entity. 7 B
000057 html5lib/entities/0066 html5lib-tests – Windows-1252 EN DASH hexadecimal numeric entity. 7 B
000058 html5lib/entities/0067 html5lib-tests — Windows-1252 EM DASH hexadecimal numeric entity. 7 B
000059 html5lib/entities/0068 html5lib-tests ˜ Windows-1252 SMALL TILDE hexadecimal numeric entity. 7 B
000060 html5lib/entities/0069 html5lib-tests ™ Windows-1252 TRADE MARK SIGN hexadecimal numeric entity. 7 B
000061 html5lib/entities/0070 html5lib-tests š Windows-1252 LATIN SMALL LETTER S WITH CARON hexadecimal numeric entity. 7 B
000062 html5lib/entities/0071 html5lib-tests › Windows-1252 SINGLE RIGHT-POINTING ANGLE QUOTATION MARK hexadecimal numeric entity. 7 B
000063 html5lib/entities/0072 html5lib-tests œ Windows-1252 LATIN SMALL LIGATURE OE hexadecimal numeric entity. 7 B
000064 html5lib/entities/0073 html5lib-tests ⟨U+009D⟩ Windows-1252 REPLACEMENT CHAR hexadecimal numeric entity. 7 B
000065 html5lib/entities/0074 html5lib-tests ž Windows-1252 LATIN SMALL LETTER Z WITH CARON hexadecimal numeric entity. 7 B
000066 html5lib/entities/0075 html5lib-tests Ÿ Windows-1252 LATIN CAPITAL LETTER Y WITH DIAERESIS hexadecimal numeric entity. 7 B
000067 html5lib/entities/0076 html5lib-tests aa Decimal numeric entity followed by hex character a. 5 B
000068 html5lib/entities/0077 html5lib-tests aA Decimal numeric entity followed by hex character A. 5 B
000069 html5lib/entities/0078 html5lib-tests af Decimal numeric entity followed by hex character f. 5 B
000070 html5lib/entities/0079 html5lib-tests aF Decimal numeric entity followed by hex character A. 5 B
000071 html5lib/numericEntities/0000 html5lib-tests � Invalid unterminated numeric entity character overflow before EOF 13 B
000072 html5lib/numericEntities/0001 html5lib-tests � Invalid unterminated numeric entity character overflow before EOF 12 B
000073 html5lib/numericEntities/0002 html5lib-tests � Invalid unterminated numeric entity character overflow before EOF 14 B
000074 html5lib/numericEntities/0003 html5lib-tests �x Invalid unterminated numeric entity character overflow 14 B
000075 html5lib/numericEntities/0004 html5lib-tests �x Invalid unterminated numeric entity character overflow 13 B
000076 html5lib/numericEntities/0005 html5lib-tests �x Invalid unterminated numeric entity character overflow 15 B
000077 html5lib/numericEntities/0006 html5lib-tests � Invalid numeric entity character overflow 14 B
000078 html5lib/numericEntities/0007 html5lib-tests � Invalid numeric entity character overflow 13 B
000079 html5lib/numericEntities/0008 html5lib-tests � Invalid numeric entity character overflow 15 B
000080 html5lib/numericEntities/0009 html5lib-tests � Invalid numeric entity character U+0000 8 B
000081 html5lib/numericEntities/0010 html5lib-tests ␁ Invalid numeric entity character U+0001 8 B
000082 html5lib/numericEntities/0011 html5lib-tests ␂ Invalid numeric entity character U+0002 8 B
000083 html5lib/numericEntities/0012 html5lib-tests ␃ Invalid numeric entity character U+0003 8 B
000084 html5lib/numericEntities/0013 html5lib-tests ␄ Invalid numeric entity character U+0004 8 B
000085 html5lib/numericEntities/0014 html5lib-tests ␅ Invalid numeric entity character U+0005 8 B
000086 html5lib/numericEntities/0015 html5lib-tests ␆ Invalid numeric entity character U+0006 8 B
000087 html5lib/numericEntities/0016 html5lib-tests ␇ Invalid numeric entity character U+0007 8 B
000088 html5lib/numericEntities/0017 html5lib-tests ␈ Invalid numeric entity character U+0008 8 B
000089 html5lib/numericEntities/0018 html5lib-tests ␋ Invalid numeric entity character U+000B 8 B
000090 html5lib/numericEntities/0019 html5lib-tests ␎ Invalid numeric entity character U+000E 8 B
000091 html5lib/numericEntities/0020 html5lib-tests ␏ Invalid numeric entity character U+000F 8 B
000092 html5lib/numericEntities/0021 html5lib-tests ␐ Invalid numeric entity character U+0010 8 B
000093 html5lib/numericEntities/0022 html5lib-tests ␑ Invalid numeric entity character U+0011 8 B
000094 html5lib/numericEntities/0023 html5lib-tests ␒ Invalid numeric entity character U+0012 8 B
000095 html5lib/numericEntities/0024 html5lib-tests ␓ Invalid numeric entity character U+0013 8 B
000096 html5lib/numericEntities/0025 html5lib-tests ␔ Invalid numeric entity character U+0014 8 B
000097 html5lib/numericEntities/0026 html5lib-tests ␕ Invalid numeric entity character U+0015 8 B
000098 html5lib/numericEntities/0027 html5lib-tests ␖ Invalid numeric entity character U+0016 8 B
000099 html5lib/numericEntities/0028 html5lib-tests ␗ Invalid numeric entity character U+0017 8 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.