From: Petri Lehtinen Date: Sun, 26 Jul 2009 18:51:45 +0000 (+0300) Subject: Expand encoder test coverage X-Git-Tag: 1.0_branch~265 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3b3055a34cef092f440001c5c79ae67acd37934;p=profile%2Fivi%2Fjansson.git Expand encoder test coverage --- diff --git a/test/loadf_dumpf.c b/test/loadf_dumpf.c index 5d42156..ce9d873 100644 --- a/test/loadf_dumpf.c +++ b/test/loadf_dumpf.c @@ -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; diff --git a/test/testdata/valid b/test/testdata/valid index 755b393..5805763 100644 --- a/test/testdata/valid +++ b/test/testdata/valid @@ -16,6 +16,8 @@ ======== ["\uD834\uDD1E surrogate, four-byte UTF-8"] ======== +["\u0012 escaped control character"] +======== [0] ======== [1]