[A] Added more checks

This commit is contained in:
seleznevae
2018-03-29 22:18:49 +03:00
parent 58d7062c0f
commit 7b16e1aec1
5 changed files with 107 additions and 65 deletions

View File

@@ -18,7 +18,7 @@ void test_vector_basic(void)
WHEN("Pushing less items than initial capacity") {
for (i = 0; i < init_capacity; ++i) {
item_t item = i;
item_t item = (item_t)i;
vector_push(vector, &item);
}
@@ -38,7 +38,7 @@ void test_vector_basic(void)
WHEN("Pushing more items than initial capacity") {
for (i = 0; i < 2 * init_capacity; ++i) {
item_t item = 2 * i;
item_t item = (item_t)(2 * i);
vector_push(vector, &item);
}