diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-03-19 15:45:24 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2010-03-19 15:47:52 +0000 |
commit | 24567790d30e314ee519c8f3756b3514c0c3fd31 (patch) | |
tree | 0c2c163583c1c91382ee035d46e1671f7037a711 /json-glib/tests/parser-test.c | |
parent | 08cec3b7c9202007a5abbf548f8d2f1b54d4d0b4 (diff) | |
download | json-glib-24567790d30e314ee519c8f3756b3514c0c3fd31.tar.gz |
parser: Add MISSING_COLON error
We identify a missing ':' separator between an object member name and
its value, so it would be a good thing to actually have an error code
for that.
Diffstat (limited to 'json-glib/tests/parser-test.c')
-rw-r--r-- | json-glib/tests/parser-test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/json-glib/tests/parser-test.c b/json-glib/tests/parser-test.c index 8fb11b1..5e5fa48 100644 --- a/json-glib/tests/parser-test.c +++ b/json-glib/tests/parser-test.c @@ -139,7 +139,8 @@ static const struct { "{ \"foo\" : true \"bar\" : false }", JSON_PARSER_ERROR_MISSING_COMMA }, { "[ true, [ false, ] ]", JSON_PARSER_ERROR_TRAILING_COMMA }, { "{ \"foo\" : { \"bar\" : false, } }", JSON_PARSER_ERROR_TRAILING_COMMA }, - { "[ { }, { }, { }, ]", JSON_PARSER_ERROR_TRAILING_COMMA } + { "[ { }, { }, { }, ]", JSON_PARSER_ERROR_TRAILING_COMMA }, + { "{ \"foo\" false }", JSON_PARSER_ERROR_MISSING_COLON } }; static guint n_test_base_values = G_N_ELEMENTS (test_base_values); |