mirror of
https://github.com/DaveGamble/cJSON
synced 2024-12-23 23:22:09 +00:00
tests: print_string: test if NULL is printed as empty string
This commit is contained in:
parent
6a746a230a
commit
88e38d042f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user