Expand encoder test coverage
authorPetri Lehtinen <petri@digip.org>
Sun, 26 Jul 2009 18:51:45 +0000 (21:51 +0300)
committerPetri Lehtinen <petri@digip.org>
Sun, 26 Jul 2009 18:51:45 +0000 (21:51 +0300)
test/loadf_dumpf.c
test/testdata/valid

index 5d42156..ce9d873 100644 (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;
index 755b393..5805763 100644 (file)
@@ -16,6 +16,8 @@
 ========
 ["\uD834\uDD1E surrogate, four-byte UTF-8"]
 ========
+["\u0012 escaped control character"]
+========
 [0]
 ========
 [1]