[glib] Test g_parse_debug_string ("all")
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Test g_parse_debug_string ("all")
- Date: Tue, 25 Oct 2011 00:38:43 +0000 (UTC)
commit 73ffa9034f80ff08c30ff519984b5d00894c63c6
Author: Will Thompson <will thompson collabora co uk>
Date: Wed Feb 16 10:48:22 2011 +0000
Test g_parse_debug_string ("all")
https://bugzilla.gnome.org/show_bug.cgi?id=642452
tests/testglib.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/tests/testglib.c b/tests/testglib.c
index 1f0a9ab..35c9573 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]