aboutsummaryrefslogtreecommitdiff
path: root/test/src/dstr/test_ft_dstrunwrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/dstr/test_ft_dstrunwrap.c')
-rw-r--r--test/src/dstr/test_ft_dstrunwrap.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/test/src/dstr/test_ft_dstrunwrap.c b/test/src/dstr/test_ft_dstrunwrap.c
deleted file mode 100644
index dbc334a..0000000
--- a/test/src/dstr/test_ft_dstrunwrap.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* test_ft_dstrunwrap.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/04/01 19:41:59 by charles #+# #+# */
-/* Updated: 2020/04/04 21:07:16 by charles ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "libft_test.h"
-
-TEST_GROUP(ft_dstrunwrap);
-
-TEST_SETUP(ft_dstrunwrap)
-{}
-
-TEST_TEAR_DOWN(ft_dstrunwrap)
-{}
-
-TEST(ft_dstrunwrap, basic)
-{
- t_ftdstr *dstr;
- char *ret;
-
- dstr = ft_dstrnew("bonjour");
- ret = ft_dstrunwrap(dstr);
- TEST_ASSERT_NOT_NULL(ret);
- TEST_ASSERT_EQUAL_STRING("bonjour", ret);
-
- dstr = ft_dstrnew("");
- ret = ft_dstrunwrap(dstr);
- TEST_ASSERT_NOT_NULL(ret);
- TEST_ASSERT_EQUAL_STRING("", ret);
-
- dstr = ft_dstrnew("hidden\0text");
- ret = ft_dstrunwrap(dstr);
- TEST_ASSERT_NOT_NULL(ret);
- TEST_ASSERT_EQUAL_STRING("hidden", ret);
-}