summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2011-02-16 10:48:22 +0000
committerMatthias Clasen <mclasen@redhat.com>2011-10-24 20:26:22 -0400
commit73ffa9034f80ff08c30ff519984b5d00894c63c6 (patch)
tree54feaa526a842353186afa1d4205c6419073cad8 /tests
parent94a46ea410ced6904691dba16d01485b6a6283f0 (diff)
downloadglib-73ffa9034f80ff08c30ff519984b5d00894c63c6.tar.gz
Test g_parse_debug_string ("all")
https://bugzilla.gnome.org/show_bug.cgi?id=642452
Diffstat (limited to 'tests')
-rw-r--r--tests/testglib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/testglib.c b/tests/testglib.c
index 1f0a9abea..35c95730f 100644
--- a/tests/testglib.c
+++ b/tests/testglib.c
@@ -514,7 +514,7 @@ test_g_parse_debug_string (void)
{ "bar", 2 },
{ "baz", 4 }
};
- guint n_keys = 3;
+ guint n_keys = G_N_ELEMENTS (keys);
guint result;
result = g_parse_debug_string ("bar:foo:blubb", keys, n_keys);
@@ -528,6 +528,9 @@ test_g_parse_debug_string (void)
result = g_parse_debug_string (" : ", keys, n_keys);
g_assert (result == 0);
+
+ result = g_parse_debug_string ("all", keys, n_keys);
+ g_assert_cmpuint (result, ==, (1 << n_keys) - 1);
}
static void