mirror of
https://github.com/DaveGamble/cJSON.git
synced 2024-12-28 06:30:52 +08: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…
x
Reference in New Issue
Block a user