Expand encoder test coverage

This commit is contained in:
Petri Lehtinen 2009-07-26 21:51:45 +03:00
parent 20efe4aa26
commit d3b3055a34
2 changed files with 5 additions and 1 deletions

View File

@ -17,7 +17,9 @@ int main(int argc, char *argv[])
return 1;
}
json_dumpf(json, stdout, 0);
/* loadf_dumpf indents, others don't, so dumping with and without
indenting is tested */
json_dumpf(json, stdout, JSON_INDENT(4));
json_decref(json);
return 0;

2
test/testdata/valid vendored
View File

@ -16,6 +16,8 @@
========
["\uD834\uDD1E surrogate, four-byte UTF-8"]
========
["\u0012 escaped control character"]
========
[0]
========
[1]