X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=test%2Floadf_dumpf.c;h=75b889f9594f7cc41ac4de2504a960bf52353edb;hb=4cd777712b1e4ec17dc9efcced80a90f83ec1915;hp=5d4215688879a9082cff1aad492d19e85d69763b;hpb=8ef778c8431c17d970b2667943c6ea13c3770912;p=jansson.git diff --git a/test/loadf_dumpf.c b/test/loadf_dumpf.c index 5d42156..75b889f 100644 --- a/test/loadf_dumpf.c +++ b/test/loadf_dumpf.c @@ -1,3 +1,10 @@ +/* + * Copyright (c) 2009 Petri Lehtinen + * + * Jansson is free software; you can redistribute it and/or modify + * it under the terms of the MIT license. See LICENSE for details. + */ + #include #include @@ -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;