diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-10-11 14:53:20 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-10-11 14:53:20 +0200 |
| commit | 39951f08a2938683d800c677c3a244e9ff8dbe19 (patch) | |
| tree | 9321278f57c91d070e269fc2d2f95d4f2cb00fdf /test/src/lst/test_ft_lstbsearch.c | |
| parent | 306a69eb9ae88813cf0be0aa3e001481e12220a1 (diff) | |
| download | libft-39951f08a2938683d800c677c3a244e9ff8dbe19.tar.gz libft-39951f08a2938683d800c677c3a244e9ff8dbe19.tar.bz2 libft-39951f08a2938683d800c677c3a244e9ff8dbe19.zip | |
Removing none c,h files for correction
Diffstat (limited to 'test/src/lst/test_ft_lstbsearch.c')
| -rw-r--r-- | test/src/lst/test_ft_lstbsearch.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/test/src/lst/test_ft_lstbsearch.c b/test/src/lst/test_ft_lstbsearch.c deleted file mode 100644 index 81f2578..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_lstpush_front(&lst, ft_lstnew(&c)); - ft_lstpush_front(&lst, ft_lstnew(&b)); - ft_lstpush_front(&lst, ft_lstnew(&a)); - ft_lstpush_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_lstdestroy(&lst, NULL); -} |
