Skip to content

Commit

Permalink
Add an_array_set_allocator test
Browse files Browse the repository at this point in the history
  • Loading branch information
asweeney86 committed Dec 21, 2017
1 parent d4ce7e0 commit 062bc4e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/check_an_array.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,20 @@ START_TEST(resize)
}
END_TEST

START_TEST(allocator)
{
an_array_set_allocator(&default_allocator);
}
END_TEST

int
main(int argc, char *argv[])
{
SRunner *sr;
Suite *suite = suite_create("an_array");
TCase *tc = tcase_create("test_an_array");

tcase_add_test(tc, allocator);
tcase_add_test(tc, stack);
tcase_add_test(tc, stack_generic);
tcase_add_test(tc, find_element);
Expand Down

0 comments on commit 062bc4e

Please sign in to comment.