mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03: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)
|
static void print_string_should_print_empty_strings(void)
|
||||||
{
|
{
|
||||||
assert_print_string("\"\"", "");
|
assert_print_string("\"\"", "");
|
||||||
|
assert_print_string("\"\"", NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void print_string_should_print_ascii(void)
|
static void print_string_should_print_ascii(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user