Commit ce7463a8 authored by Matthias Clasen's avatar Matthias Clasen

improve scanner api test coverage

parent 6d41af0f
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment