From dd0c485ac4975b7dd6d2e230213be1da50d0a065 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Fri, 18 Sep 2020 16:39:52 +0200 Subject: Removing unnecessary stuff --- test/src/lst/test_ft_lstbsearch.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 test/src/lst/test_ft_lstbsearch.c (limited to 'test/src/lst/test_ft_lstbsearch.c') diff --git a/test/src/lst/test_ft_lstbsearch.c b/test/src/lst/test_ft_lstbsearch.c deleted file mode 100644 index 218f0bf..0000000 --- a/test/src/lst/test_ft_lstbsearch.c +++ /dev/null @@ -1,37 +0,0 @@ -#include "libft_test.h" - -TEST_GROUP(ft_lstbsearch); - -TEST_SETUP(ft_lstbsearch) -{} - -TEST_TEAR_DOWN(ft_lstbsearch) -{} - -TEST(ft_lstbsearch, basic) -{ - t_ftlst *found = NULL; - t_ftlst *lst = NULL; - int a = 1; - int b = 2; - int c = 3; - int d = 4; - - ft_lstadd_front(&lst, ft_lstnew(&c)); - ft_lstadd_front(&lst, ft_lstnew(&b)); - ft_lstadd_front(&lst, ft_lstnew(&a)); - ft_lstadd_front(&lst, ft_lstnew(&a)); - - found = ft_lstbsearch(lst, ft_compar_int, &c); - TEST_ASSERT_NOT_NULL(found); - found = ft_lstbsearch(lst, ft_compar_int, &c); - TEST_ASSERT_NOT_NULL(found); - found = ft_lstbsearch(lst, ft_compar_int, &b); - TEST_ASSERT_NOT_NULL(found); - found = ft_lstbsearch(lst, ft_compar_int, &a); - TEST_ASSERT_NOT_NULL(found); - found = ft_lstbsearch(lst, ft_compar_int, &d); - TEST_ASSERT_NULL(found); - - ft_lstclear(&lst, NULL); -} -- cgit