aboutsummaryrefslogtreecommitdiff
path: root/test/src/ht/test_ft_htnew.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/ht/test_ft_htnew.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/ht/test_ft_htnew.c')
-rw-r--r--test/src/ht/test_ft_htnew.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/test/src/ht/test_ft_htnew.c b/test/src/ht/test_ft_htnew.c
deleted file mode 100644
index b68daa6..0000000
--- a/test/src/ht/test_ft_htnew.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* test_ft_htnew.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/02/12 22:30:06 by cacharle #+# #+# */
-/* Updated: 2020/07/17 14:17:11 by charles ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "libft_test.h"
-
-TEST_GROUP(ft_htnew);
-
-TEST_SETUP(ft_htnew)
-{}
-
-TEST_TEAR_DOWN(ft_htnew)
-{}
-
-TEST(ft_htnew, segfault)
-{
- TEST_ASSERT_SEGFAULT(ft_htnew(10));
- TEST_ASSERT_SEGFAULT(ft_htnew(0));
- TEST_ASSERT_SEGFAULT(ft_htnew((1 << 14) + 1));
-}
-
-TEST(ft_htnew, error_null)
-{
- TEST_ASSERT_NOT_NULL(ft_htnew(10));
- TEST_ASSERT_NULL(ft_htnew(0));
-}
-
-TEST(ft_htnew, happy_path)
-{
- t_ftht *ht;
-
- ht = ft_htnew(10);
- TEST_ASSERT_NOT_NULL(ht);
- TEST_ASSERT_EQUAL(10, ht->size);
- TEST_ASSERT_NOT_NULL(ht->buckets);
- for (t_ftsize i = 0; i < ht->size; i++)
- TEST_ASSERT_NULL(ht->buckets[i]);
-}