diff options
author | Emmanuele Bassi <ebassi@openedhand.com> | 2008-04-24 15:47:11 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@openedhand.com> | 2008-04-24 15:47:11 +0100 |
commit | 30f9d47ecf43a17610cd9c0074ff832bfa37593c (patch) | |
tree | 848c9c66110580a5527ec586ea68a799274c1d3f | |
parent | 07c2b916dadb4b40fbaabf49f0e80941993cc2cf (diff) | |
download | json-glib-30f9d47ecf43a17610cd9c0074ff832bfa37593c.tar.gz |
Test the equality of the serialize string length
-rw-r--r-- | tests/test-serialize-simple.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test-serialize-simple.c b/tests/test-serialize-simple.c index 3be00b5..6006919 100644 --- a/tests/test-serialize-simple.c +++ b/tests/test-serialize-simple.c @@ -142,7 +142,10 @@ test_serialize (void) data = json_serialize_gobject (G_OBJECT (obj), &len); + g_assert (data != NULL); g_assert_cmpint (len, >, 0); + g_assert_cmpint (len, ==, strlen (data)); + if (g_test_verbose ()) g_print ("TestObject:\n%s\n", data); |