[glib] Improve uri test coverage



commit cb8f88ca9fc87a65c7df69164e0ea8a905fc224b
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Aug 18 14:41:48 2012 -0400

    Improve uri test coverage

 glib/tests/uri.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/uri.c b/glib/tests/uri.c
index c4f6678..828dcac 100644
--- a/glib/tests/uri.c
+++ b/glib/tests/uri.c
@@ -357,6 +357,9 @@ test_uri_escape (void)
   s = g_uri_escape_string ("a+b:c", "+", FALSE);
   g_assert_cmpstr (s, ==, "a+b%3Ac");
   g_free (s);
+  s = g_uri_escape_string ("a+b:c\303\234", "+", TRUE);
+  g_assert_cmpstr (s, ==, "a+b%3Ac\303\234");
+  g_free (s);
 }
 
 static void



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