diff --git a/tests/queries/0_stateless/02863_decode_html_component.reference b/tests/queries/0_stateless/02863_decode_html_component.reference new file mode 100644 index 00000000000..3749c14591a --- /dev/null +++ b/tests/queries/0_stateless/02863_decode_html_component.reference @@ -0,0 +1,22 @@ +Hello, "world"! +<123> +&clickhouse +\'foo\' +Hello, && world +Hello, &;& world +Hello, &a;& world +Hello, <t;& world +Hello, <t& world +Hello, &t;& world + !"#$%&\'()*+,-./012 +)*+,-./0123456789:;< +=>?@ABCDEFGHIJKLMNOP +为 +为 +�\'123 +ЦЦЮЮЫㄱ +C𝓁𝒾𝒸𝓀𝐻𝑜𝓊𝓈𝑒 +C𝓁𝒾𝒸𝓀𝐻𝑜𝓊𝓈𝑒 +C𝓁𝒾𝒸𝓀𝐻𝑜𝓊𝓈𝑒{ + +C diff --git a/tests/queries/0_stateless/02863_decode_html_component.sql b/tests/queries/0_stateless/02863_decode_html_component.sql new file mode 100644 index 00000000000..0eb4653e38b --- /dev/null +++ b/tests/queries/0_stateless/02863_decode_html_component.sql @@ -0,0 +1,24 @@ +SELECT decodeHTMLComponent('Hello, "world"!'); +SELECT decodeHTMLComponent('<123>'); +SELECT decodeHTMLComponent('&clickhouse'); +SELECT decodeHTMLComponent(''foo''); +SELECT decodeHTMLComponent('Hello, && world'); +SELECT decodeHTMLComponent('Hello, &;& world'); +SELECT decodeHTMLComponent('Hello, &a;& world'); +SELECT decodeHTMLComponent('Hello, <t;& world'); +SELECT decodeHTMLComponent('Hello, <t& world'); +SELECT decodeHTMLComponent('Hello, &t;& world'); + +SELECT decodeHTMLComponent(' !"#$%&'()*+,-./012'); +SELECT decodeHTMLComponent(')*+,-./0123456789:;<'); +SELECT decodeHTMLComponent('=>?@ABCDEFGHIJKLMNOP'); +SELECT decodeHTMLComponent('为'); +SELECT decodeHTMLComponent('为'); +SELECT decodeHTMLComponent('�'123'); +SELECT decodeHTMLComponent('ЦЦЮЮЫㄱ'); +SELECT decodeHTMLComponent('C𝓁𝒾𝒸𝓀𝐻𝑜𝓊𝓈𝑒'); +SELECT decodeHTMLComponent('C𝓁𝒾𝒸𝓀𝐻𝑜𝓊𝓈𝑒'); +SELECT decodeHTMLComponent('C𝓁𝒾𝒸𝓀𝐻𝑜𝓊𝓈𝑒{'); +SELECT decodeHTMLComponent(''); +SELECT decodeHTMLComponent('C'); +