diff options
author | Emmanuele Bassi <ebassi@openedhand.com> | 2007-11-21 20:44:08 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@openedhand.com> | 2007-11-21 20:44:08 +0000 |
commit | aa8911ca4d63bfb3dd34997f9a745d70d12673af (patch) | |
tree | acb821b073180947da75c839fe9a3b34ace94766 | |
parent | 7083e9e6733611b5313f0708c4b93b9726ef26d0 (diff) | |
download | json-glib-aa8911ca4d63bfb3dd34997f9a745d70d12673af.tar.gz |
Update the test case for the Vala bindings
-rw-r--r-- | contrib/json-test.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/json-test.vala b/contrib/json-test.vala index 744c5fa..bdc9a2f 100644 --- a/contrib/json-test.vala +++ b/contrib/json-test.vala @@ -50,10 +50,10 @@ public class Sample : GLib.Object { return; } - var root = parser.get_root ().copy (); + var root = parser.get_root (); stdout.printf ("root node type: %s\n", root.type_name ()); - switch (root.type) { + switch (root.type ()) { case Json.NodeType.OBJECT: break; case Json.NodeType.ARRAY: |