diff options
author | Emmanuele Bassi <ebassi@gmail.com> | 2022-10-11 09:57:12 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2022-10-11 09:57:12 +0000 |
commit | 3054c85cb86d3c13128b496c8b116a4a40f0764d (patch) | |
tree | d520bc9f7d1bbaf6b6810d6253b728532bfe14a2 /json-glib/tests/path.c | |
parent | aaee26ac0be80bf952b4cd9ffd72218f24f83bed (diff) | |
parent | cc83006f66d00c78efc2fdbe109eab1724dc0958 (diff) | |
download | json-glib-1-6.tar.gz |
Merge branch 'feature/drop_raw_g_assert' into 'master'json-glib-1-6
Drop usage of raw g_assert in reader test in favor of g_assert_*()
See merge request GNOME/json-glib!54
Diffstat (limited to 'json-glib/tests/path.c')
-rw-r--r-- | json-glib/tests/path.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/json-glib/tests/path.c b/json-glib/tests/path.c index e6d82c2..d674da3 100644 --- a/json-glib/tests/path.c +++ b/json-glib/tests/path.c @@ -190,7 +190,7 @@ path_expressions_valid (gconstpointer data) if (g_test_verbose ()) g_print ("* %s ('%s')\n", desc, expr); - g_assert (json_path_compile (path, expr, &error)); + g_assert_true (json_path_compile (path, expr, &error)); g_assert_no_error (error); g_object_unref (path); @@ -211,7 +211,7 @@ path_expressions_invalid (gconstpointer data) g_print ("* %s ('%s')\n", desc, expr); - g_assert (!json_path_compile (path, expr, &error)); + g_assert_false (json_path_compile (path, expr, &error)); g_assert_error (error, JSON_PATH_ERROR, code); g_object_unref (path); @@ -236,10 +236,10 @@ path_match (gconstpointer data) json_parser_load_from_data (parser, test_json, -1, NULL); root = json_parser_get_root (parser); - g_assert (json_path_compile (path, expr, NULL)); + g_assert_true (json_path_compile (path, expr, NULL)); matches = json_path_match (path, root); - g_assert (JSON_NODE_HOLDS_ARRAY (matches)); + g_assert_true (JSON_NODE_HOLDS_ARRAY (matches)); json_generator_set_root (gen, matches); str = json_generator_to_data (gen, NULL); |