aboutsummaryrefslogtreecommitdiff
path: root/test/src/mem/test_ft_calloc.c
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-10-11 14:53:20 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-10-11 14:53:20 +0200
commit39951f08a2938683d800c677c3a244e9ff8dbe19 (patch)
tree9321278f57c91d070e269fc2d2f95d4f2cb00fdf /test/src/mem/test_ft_calloc.c
parent306a69eb9ae88813cf0be0aa3e001481e12220a1 (diff)
downloadlibft-39951f08a2938683d800c677c3a244e9ff8dbe19.tar.gz
libft-39951f08a2938683d800c677c3a244e9ff8dbe19.tar.bz2
libft-39951f08a2938683d800c677c3a244e9ff8dbe19.zip
Removing none c,h files for correction
Diffstat (limited to 'test/src/mem/test_ft_calloc.c')
-rw-r--r--test/src/mem/test_ft_calloc.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/test/src/mem/test_ft_calloc.c b/test/src/mem/test_ft_calloc.c
deleted file mode 100644
index 0df9b95..0000000
--- a/test/src/mem/test_ft_calloc.c
+++ /dev/null
@@ -1,33 +0,0 @@
-#include "libft_test.h"
-
-TEST_GROUP(ft_calloc);
-
-TEST_SETUP(ft_calloc)
-{}
-
-TEST_TEAR_DOWN(ft_calloc)
-{}
-
-TEST(ft_calloc, basic)
-{
- char *ptr = NULL;
-
- ptr = ft_calloc(45, sizeof(char));
- TEST_ASSERT_NOT_NULL(ptr);
-#ifdef __APPLE__
- TEST_ASSERT_GREATER_THAN(45 * sizeof(char) - 1, malloc_size(ptr));
-#endif
- for (int i = 0; i < 45; i++)
- TEST_ASSERT_EQUAL(0x0, ptr[i]);
- /* free(ptr); */
-
- int *ptrint = NULL;
- ptrint = ft_calloc(10, sizeof(int));
- TEST_ASSERT_NOT_NULL(ptr);
-#ifdef __APPLE__
- TEST_ASSERT_GREATER_THAN(10 * sizeof(int) - 1, malloc_size(ptrint));
-#endif
- for (int i = 0; i < 10; i++)
- TEST_ASSERT_EQUAL(0x0, ptrint[i]);
- /* free(ptrint); */
-}