diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2009-09-28 18:15:48 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2009-09-28 18:15:48 +0100 |
commit | d5bebce0286aef5c4b4110c16c22a8ef3dc38405 (patch) | |
tree | 8170219052db026465249b2238589e82192980c0 /json-glib/tests | |
parent | 17fc731ed54b754285bac76c7ac23eac6b96bf24 (diff) | |
download | json-glib-d5bebce0286aef5c4b4110c16c22a8ef3dc38405.tar.gz |
[node] Add HOLDS macros for quick type checking
JsonNode should mimick GValue's API and have macros for easy type checking
Diffstat (limited to 'json-glib/tests')
-rw-r--r-- | json-glib/tests/node-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/json-glib/tests/node-test.c b/json-glib/tests/node-test.c index 7c0336d..da979a4 100644 --- a/json-glib/tests/node-test.c +++ b/json-glib/tests/node-test.c @@ -60,7 +60,7 @@ test_null (void) { JsonNode *node = json_node_new (JSON_NODE_NULL); - g_assert_cmpint (json_node_get_node_type (node), ==, JSON_NODE_NULL); + g_assert (JSON_NODE_HOLDS_NULL (node)); g_assert_cmpint (json_node_get_value_type (node), ==, G_TYPE_INVALID); g_assert_cmpstr (json_node_type_name (node), ==, "NULL"); |