From 1de03da5345a764f21d2886596ad41ac50f90728 Mon Sep 17 00:00:00 2001 From: starnakin Date: Mon, 2 Sep 2024 15:29:06 +0200 Subject: [PATCH] fix: test: strcpy --- test/test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test.c b/test/test.c index 65f38c8..f1e205f 100644 --- a/test/test.c +++ b/test/test.c @@ -46,14 +46,14 @@ void multiple_test_int_2(int (*normal_func)(const char *, const char *), int (*o } } -void multiple_test_strcpy(int (*own_func)(char *, const char *), const char * const *values) +void multiple_test_strcpy(char *(*own_func)(char *, const char *), const char * const *values) { char tmp[4096]; for (size_t i = 0; values[i] != NULL; i++) { printf("test: %s", values[i]); - test_int(strcpy(tmp, values[i]), own_func(tmp, values[i])); + test_size_t((size_t) strcpy(tmp, values[i]), (size_t) own_func(tmp, values[i])); test_str(values[i], tmp); printf("\n"); } @@ -72,7 +72,7 @@ int main() multiple_test_int_2(strcmp, ft_strcmp, strcmp_tests); printf("\n"); - + printf("STRCPY\n"); const char *strcpy_tests[] = {"yo", "", "bonjour", "co\0fgf", NULL}; multiple_test_strcpy(ft_strcpy, strcpy_tests);