[glib] improve scanner api test coverage
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] improve scanner api test coverage
- Date: Sat, 31 Jul 2010 06:50:01 +0000 (UTC)
commit ce7463a87b8f039490be075ba0505fa2986509b6
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jul 31 02:39:53 2010 -0400
improve scanner api test coverage
glib/tests/scannerapi.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/glib/tests/scannerapi.c b/glib/tests/scannerapi.c
index d33fed9..85cd92c 100644
--- a/glib/tests/scannerapi.c
+++ b/glib/tests/scannerapi.c
@@ -96,7 +96,10 @@ test_scanner_symbols (ScannerFixture *fix,
g_ascii_dtostr (buf, 2, (gdouble)i),
GINT_TO_POINTER (i));
g_scanner_scope_foreach_symbol (fix->scanner, 1, check_keys, NULL);
+ g_assert_cmpint (GPOINTER_TO_INT (g_scanner_lookup_symbol (fix->scanner, "5")), ==, 5);
g_scanner_scope_remove_symbol (fix->scanner, 1, "5");
+ g_assert (g_scanner_lookup_symbol (fix->scanner, "5") == NULL);
+
g_assert_cmpint (GPOINTER_TO_INT (g_scanner_scope_lookup_symbol (fix->scanner, 1, "4")), ==, 4);
g_assert_cmpint (GPOINTER_TO_INT (g_scanner_scope_lookup_symbol (fix->scanner, 1, "5")), ==, 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]