diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-09-18 16:39:52 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-09-18 16:39:52 +0200 |
| commit | dd0c485ac4975b7dd6d2e230213be1da50d0a065 (patch) | |
| tree | 5fbd967f8b95c72fbb696bb089c2cc349d28b61f /test/src/algo/test_ft_is_set.c | |
| parent | 3c3f1115f6e9a9b914e2dcbd796501ca7ce85342 (diff) | |
| download | libft-dd0c485ac4975b7dd6d2e230213be1da50d0a065.tar.gz libft-dd0c485ac4975b7dd6d2e230213be1da50d0a065.tar.bz2 libft-dd0c485ac4975b7dd6d2e230213be1da50d0a065.zip | |
Removing unnecessary stuffmalloc
Diffstat (limited to 'test/src/algo/test_ft_is_set.c')
| -rw-r--r-- | test/src/algo/test_ft_is_set.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/test/src/algo/test_ft_is_set.c b/test/src/algo/test_ft_is_set.c deleted file mode 100644 index 604ec53..0000000 --- a/test/src/algo/test_ft_is_set.c +++ /dev/null @@ -1,23 +0,0 @@ -#include "libft_test.h" - -TEST_GROUP(ft_is_set); - -TEST_SETUP(ft_is_set) -{} - -TEST_TEAR_DOWN(ft_is_set) -{} - -static int compar(const void *a, const void *b) -{ - return *(int*)a - *(int*)b; -} - -TEST(ft_is_set, basic) -{ - int arr[] = {3, 4, 1, 2, 7, 189, -1, -134, 7, 1, 34}; - int unique_arr[] = {3, 4, 2, 189, -1, -134, 7, 1, 34}; - - TEST_ASSERT_FALSE(ft_is_set(arr, sizeof(arr) / sizeof(int), sizeof(int), compar)); - TEST_ASSERT_TRUE(ft_is_set(unique_arr, sizeof(unique_arr) / sizeof(int), sizeof(int), compar)); -} |
