summaryrefslogtreecommitdiff
path: root/json-glib/tests/parser-test.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2010-03-18 17:11:11 +0000
committerEmmanuele Bassi <ebassi@linux.intel.com>2010-03-18 17:11:58 +0000
commit449656c68a3d6e0d8b96c36414b475e78b9cc272 (patch)
tree09a7a06ffc6407d43361a4233becd50ba5ea2e89 /json-glib/tests/parser-test.c
parent54756457de3f01d1a487fc6b90c5bd9b5b50bcf3 (diff)
downloadjson-glib-449656c68a3d6e0d8b96c36414b475e78b9cc272.tar.gz
parser-test: Add a case for double parsing in JsonObject
Diffstat (limited to 'json-glib/tests/parser-test.c')
-rw-r--r--json-glib/tests/parser-test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/json-glib/tests/parser-test.c b/json-glib/tests/parser-test.c
index 9227e53..8f461ef 100644
--- a/json-glib/tests/parser-test.c
+++ b/json-glib/tests/parser-test.c
@@ -83,7 +83,8 @@ static const struct {
{ "{ \"test\" : 42 }", 1, "test", JSON_NODE_VALUE, G_TYPE_INT64 },
{ "{ \"name\" : \"\", \"state\" : 1 }", 2, "name", JSON_NODE_VALUE, G_TYPE_STRING },
{ "{ \"foo\" : \"bar\", \"baz\" : null }", 2, "baz", JSON_NODE_NULL, G_TYPE_INVALID },
- { "{ \"channel\" : \"/meta/connect\" }", 1, "channel", JSON_NODE_VALUE, G_TYPE_STRING }
+ { "{ \"channel\" : \"/meta/connect\" }", 1, "channel", JSON_NODE_VALUE, G_TYPE_STRING },
+ { "{ \"halign\":0.5, \"valign\":0.5 }", 2, "valign", JSON_NODE_VALUE, G_TYPE_DOUBLE }
};
static const gchar *test_nested_objects[] = {