From d3b3055a34cef092f440001c5c79ae67acd37934 Mon Sep 17 00:00:00 2001 From: Petri Lehtinen Date: Sun, 26 Jul 2009 21:51:45 +0300 Subject: [PATCH] Expand encoder test coverage --- test/loadf_dumpf.c | 4 +++- test/testdata/valid | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) 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]