list testcase added

This commit is contained in:
Dominik Maier
2020-04-01 18:19:43 +02:00
parent 4aec6dabde
commit b5c5496b2f
5 changed files with 22 additions and 15 deletions

View File

@ -75,7 +75,7 @@ static void test_zero_size() {
char *buf = NULL;
size_t size = 0;
//assert_non_null(maybe_grow(BUF_PARAMS, 0));
assert_non_null(maybe_grow(BUF_PARAMS, 0));
free(buf);
buf = NULL;
size = 0;
@ -87,6 +87,8 @@ static void test_zero_size() {
expect_assert_failure(ck_maybe_grow(BUF_PARAMS, 0));
ck_free(ptr);
}
static void test_unchanged_size(void **state) {