aboutsummaryrefslogtreecommitdiff
path: root/test/src/mem/test_ft_memset.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_memset.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_memset.c')
-rw-r--r--test/src/mem/test_ft_memset.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/test/src/mem/test_ft_memset.c b/test/src/mem/test_ft_memset.c
deleted file mode 100644
index 7ec5846..0000000
--- a/test/src/mem/test_ft_memset.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* test_ft_memset.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2020/02/13 03:32:28 by cacharle #+# #+# */
-/* Updated: 2020/02/13 04:21:58 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "libft_test.h"
-
-TEST_GROUP(ft_memset);
-
-TEST_SETUP(ft_memset)
-{}
-
-TEST_TEAR_DOWN(ft_memset)
-{}
-
-TEST(ft_memset, basic)
-{
- int i;
- unsigned char buf[32] = {0};
-
- ft_memset(buf, 0xfa, 32);
- for (i = 0; i < 32; i++)
- TEST_ASSERT_EQUAL(0xfa, buf[i]);
-
- ft_memset(buf, 0x00, 15);
- for (i = 0; i < 15; i++)
- TEST_ASSERT_EQUAL(0x00, buf[i]);
- while (i++ < 31)
- TEST_ASSERT_EQUAL(0xfa, buf[i]);
-
- ft_memset(buf, 0x10, 31);
- for (int i = 0; i < 31; i++)
- TEST_ASSERT_EQUAL(0x10, buf[i]);
- TEST_ASSERT_EQUAL(0xfa, buf[31]);
-}