test/.gitignore: Add testprogs/test_simple
[jansson.git] / test / loadf_dumpf.c
index 5d42156..75b889f 100644 (file)
@@ -1,3 +1,10 @@
+/*
+ * Copyright (c) 2009 Petri Lehtinen <petri@digip.org>
+ *
+ * Jansson is free software; you can redistribute it and/or modify
+ * it under the terms of the MIT license. See LICENSE for details.
+ */
+
 #include <stdio.h>
 #include <jansson.h>
 
@@ -17,7 +24,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;