summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2012-12-23 10:25:03 -0600
committerEric Haszlakiewicz <erh+git@nimenees.com>2012-12-23 10:25:03 -0600
commit2e9fef38c26a3321105ebda1efed4320b85a8688 (patch)
tree28a54dfcb096ca4c2c9b8a722ee173c12d3c25dc
parent86aedc2d2a1d910b8e727d018be25374f16cf64c (diff)
downloadjson-c-2e9fef38c26a3321105ebda1efed4320b85a8688.tar.gz
Revert the test_null test back to emitted to stdout, and update the expected output to match.
-rw-r--r--tests/test_null.c6
-rw-r--r--tests/test_null.expected1
2 files changed, 4 insertions, 3 deletions
diff --git a/tests/test_null.c b/tests/test_null.c
index d017c7a..1f07910 100644
--- a/tests/test_null.c
+++ b/tests/test_null.c
@@ -41,12 +41,12 @@ int main()
int parsed_len = json_object_get_string_len(parsed_str);
const char *parsed_cstr = json_object_get_string(parsed_str);
int ii;
- fprintf( stderr, "Re-parsed object string len=%d, chars=[", parsed_len);
+ printf("Re-parsed object string len=%d, chars=[", parsed_len);
for (ii = 0; ii < parsed_len ; ii++)
{
- fprintf( stderr, "%s%d", (ii ? ", " : ""), (int)parsed_cstr[ii]);
+ printf("%s%d", (ii ? ", " : ""), (int)parsed_cstr[ii]);
}
- fprintf( stderr, "]\n");
+ printf("]\n");
json_object_put(parsed_str);
}
else
diff --git a/tests/test_null.expected b/tests/test_null.expected
index fd7b479..52d2890 100644
--- a/tests/test_null.expected
+++ b/tests/test_null.expected
@@ -1,2 +1,3 @@
JSON write result is correct: " \u0000 "
PASS
+Re-parsed object string len=3, chars=[32, 0, 32]