Browse Source

Revert the test_null test back to emitted to stdout, and update the expected output to match.

tags/json-c-0.11-20130402
Eric Haszlakiewicz 12 years ago
parent
commit
2e9fef38c2
2 changed files with 4 additions and 3 deletions
  1. +3
    -3
      tests/test_null.c
  2. +1
    -0
      tests/test_null.expected

+ 3
- 3
tests/test_null.c View File

@@ -41,12 +41,12 @@ int main()
int parsed_len = json_object_get_string_len(parsed_str); int parsed_len = json_object_get_string_len(parsed_str);
const char *parsed_cstr = json_object_get_string(parsed_str); const char *parsed_cstr = json_object_get_string(parsed_str);
int ii; 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++) 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); json_object_put(parsed_str);
} }
else else


+ 1
- 0
tests/test_null.expected View File

@@ -1,2 +1,3 @@
JSON write result is correct: " \u0000 " JSON write result is correct: " \u0000 "
PASS PASS
Re-parsed object string len=3, chars=[32, 0, 32]

Loading…
Cancel
Save