[glib/wip/sadiq/fixes] tests: Add more markup escape cases



commit 3437e82b6bfeab55a215e5cd683ca3cc2ad484d1
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Wed Oct 3 08:25:39 2018 +0530

    tests: Add more markup escape cases

 glib/tests/markup-escape.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/glib/tests/markup-escape.c b/glib/tests/markup-escape.c
index b2de289c2..7ec4df926 100644
--- a/glib/tests/markup-escape.c
+++ b/glib/tests/markup-escape.c
@@ -20,6 +20,8 @@ static EscapeTest escape_tests[] =
   { ">", "&gt;" },
   { "'", "&apos;" },
   { "\"", "&quot;" },
+  { "\"\"", "&quot;&quot;" },
+  { "\"അ\"", "&quot;അ&quot;" },
   { "", "" },
   { "A", "A" },
   { "A&", "A&amp;" },
@@ -30,7 +32,11 @@ static EscapeTest escape_tests[] =
   { "A&&A", "A&amp;&amp;A" },
   { "A&A&A", "A&amp;A&amp;A" },
   { "A&#23;A", "A&amp;#23;A" },
-  { "A&#xa;A", "A&amp;#xa;A" }
+  { "A&#xa;A", "A&amp;#xa;A" },
+  { "N\x2N", "N&#x2;N" },
+  { "N\xc2\x80N", "N&#x80;N" },
+  { "N\xc2\x79N", "N\xc2\x79N" },
+  { "N\xc2\x9fN", "N&#x9f;N" },
 };
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]