aboutsummaryrefslogtreecommitdiff
path: root/test/src/lst/test_ft_lstlast.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/lst/test_ft_lstlast.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/lst/test_ft_lstlast.c')
-rw-r--r--test/src/lst/test_ft_lstlast.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/test/src/lst/test_ft_lstlast.c b/test/src/lst/test_ft_lstlast.c
deleted file mode 100644
index 82c8096..0000000
--- a/test/src/lst/test_ft_lstlast.c
+++ /dev/null
@@ -1,29 +0,0 @@
-#include "libft_test.h"
-
-TEST_GROUP(ft_lstlast);
-
-TEST_SETUP(ft_lstlast)
-{}
-
-TEST_TEAR_DOWN(ft_lstlast)
-{}
-
-TEST(ft_lstlast, basic)
-{
- t_ftlst *lst = NULL;
- int a = 1;
- int b = 2;
- int c = 3;
- int d = 4;
-
- ft_lstpush_front(&lst, ft_lstnew(&a));
- TEST_ASSERT_EQUAL_PTR(lst, ft_lstlast(lst));
- ft_lstpush_front(&lst, ft_lstnew(&b));
- TEST_ASSERT_EQUAL_PTR(lst->next, ft_lstlast(lst));
- ft_lstpush_front(&lst, ft_lstnew(&c));
- TEST_ASSERT_EQUAL_PTR(lst->next->next, ft_lstlast(lst));
- ft_lstpush_front(&lst, ft_lstnew(&d));
- TEST_ASSERT_EQUAL_PTR(lst->next->next->next, ft_lstlast(lst));
-
- ft_lstdestroy(&lst, NULL);
-}