summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/it_html.t22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/it_html.t b/tests/it_html.t
index a576b47..b1d271e 100755
--- a/tests/it_html.t
+++ b/tests/it_html.t
@@ -165,19 +165,19 @@ is(
"q←x",
'it_html::sanitize preserve non-decodable numeric entities'
);
-is(it_html::entity_decode("’"), "'");
-is(it_html::entity_decode("࿿"), " ");
-is(it_html::entity_decode("ϧ"), " ");
+is(it_html::entity_decode("’"), "'", "it_html::entity_decode numeric decimal entity");
+is(it_html::entity_decode("࿿"), " ", "it_html::entity_decode invalid numeric hex entity");
+is(it_html::entity_decode("ϧ"), " ", "it_html::entity_decode invalid numeric decimal entity");
-is(it_html::fix_encoding("Meier"), "Meier");
-is(it_html::fix_encoding("Müller"), "Müller");
-is(it_html::fix_encoding("Aslı"), "Aslı");
-is(it_html::fix_encoding("é»"), "é»");
+is(it_html::fix_encoding("Meier"), "Meier", "it_html::fix_encoding ascii");
+is(it_html::fix_encoding("Müller"), "Müller", "it_html::fix_encoding utf-8 latin1");
+is(it_html::fix_encoding("Aslı"), "Aslı", "it_html::fix_encoding utf-8 non-latin1");
+is(it_html::fix_encoding("é»"), "é»", "it_html::fix_encoding utf-8 latin1 special combination");
-is(it_html::fix_encoding(utf8_encode("Müller"), true), "Müller", "double encoded latin1"); # Double encoded latin1
-is(it_html::fix_encoding(utf8_encode("Aslı"), true), "Aslı"); # Double encoded non-latin1
-is(it_html::fix_encoding(utf8_encode("é»"), true), "é»"); # Double encoded special combination
+is(it_html::fix_encoding(utf8_encode("Müller"), true), "Müller", "it_html::fix_encoding double encoded latin1");
+is(it_html::fix_encoding(utf8_encode("Aslı"), true), "Aslı", "it_html::fix_encoding double encoded non-latin1");
+is(it_html::fix_encoding(utf8_encode("é»"), true), "é»", "it_html::fix_encoding double encoded latin1 special combination");
-is(it_html::fix_encoding(utf8_decode("Müller"), true), "Müller"); # Incorrectly decoded latin1
+is(it_html::fix_encoding(utf8_decode("Müller"), true), "Müller", "it_html::fix_encoding incorrectly encoded latin1");
?>