aboutsummaryrefslogtreecommitdiff
path: root/test/src/ht/test_ftht_entry_new.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_ftht_entry_new.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_ftht_entry_new.c')
-rw-r--r--test/src/ht/test_ftht_entry_new.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/test/src/ht/test_ftht_entry_new.c b/test/src/ht/test_ftht_entry_new.c
deleted file mode 100644
index a566600..0000000
--- a/test/src/ht/test_ftht_entry_new.c
+++ /dev/null
@@ -1,43 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* test_ft_htentry_new.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/02/17 04:07:04 by cacharle #+# #+# */
-/* Updated: 2020/02/17 04:15:39 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "libft_test.h"
-
-TEST_GROUP(ft_htentry_new);
-
-TEST_SETUP(ft_htentry_new)
-{}
-
-TEST_TEAR_DOWN(ft_htentry_new)
-{}
-
-TEST(ft_htentry_new, basic)
-{
- t_ftht_entry *c = NULL;
-
- char *k = "bonjour";
- c = ft_htentry_new(k, NULL);
- TEST_ASSERT_NOT_NULL(c);
- TEST_ASSERT(k != c->key);
- TEST_ASSERT_EQUAL_STRING(k, c->key);
- TEST_ASSERT_NULL(c->value);
-
- c = ft_htentry_new(k, k);
- TEST_ASSERT_NOT_NULL(c);
- TEST_ASSERT(k != c->key);
- TEST_ASSERT_EQUAL_STRING(k, c->key);
- TEST_ASSERT_EQUAL_PTR(k, c->value);
- TEST_ASSERT_EQUAL_STRING(k, (char*)c->value);
-
- /* free(c->key); */
- /* free(c); */
-}