mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-10-14 10:20:05 +00:00
tests: print_string: test if NULL is printed as empty string
This commit is contained in:
1 parent
6a746a230a
commit
88e38d042f
1 file changed
+1
@@ -40,6 +40,7 @@ static void assert_print_string(const char *expected, const char *input)
|
||||
static void print_string_should_print_empty_strings(void)
|
||||
{
|
||||
assert_print_string("\"\"", "");
|
||||
assert_print_string("\"\"", NULL);
|
||||
}
|
||||
|
||||
static void print_string_should_print_ascii(void)
|
||||
|
||||
Reference in new issue
Block a user