Fix #647, but caused by 89791a0

This commit is contained in:
Nicolas Williams committed 2014-12-12 17:05:16 -06:00
1 parent 44c2382402
commit 2075bec60f
2 files changed
+14

No files matched your search

+8
View File
@@ -101,6 +101,14 @@ static void run_jq_tests(FILE *testdata) {
static void jv_test() {
/// JSON parser regression tests
{
jv v = jv_parse("{\"a':\"12\"}");
assert(jv_get_kind(v) == JV_KIND_INVALID);
v = jv_invalid_get_msg(v);
assert(strcmp(jv_string_value(v), "Expected separator between values at line 1, column 9 (while parsing '{\"a':\"12\"}')") == 0);
jv_free(v);
}
/// Arrays and numbers
{
jv a = jv_array();