mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
improve scanner api test coverage
This commit is contained in:
parent
6d41af0f72
commit
ce7463a87b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user