tests: check that function string_strndup returns NULL if the given string is NULL
This commit is contained in:
parent
8bcf31950e
commit
8b056d7d24
@ -111,7 +111,7 @@ TEST(String, Duplicate)
|
||||
const char *str_test = "test";
|
||||
char *str;
|
||||
|
||||
str = string_strndup (NULL, 0);
|
||||
POINTERS_EQUAL(NULL, string_strndup (NULL, 0));
|
||||
|
||||
str = string_strndup (str_test, 0);
|
||||
CHECK(str);
|
||||
|
Loading…
x
Reference in New Issue
Block a user