From e8dcc3ccd1f132d4d62e642ece5024d76bd99cb6 Mon Sep 17 00:00:00 2001 From: Timo Schmidt Date: Wed, 3 May 2023 22:33:59 +0200 Subject: [PATCH] Bug --- libft_test/ft_isalnum_test.c | 4 ++-- libft_test/ft_isalpha_test.c | 4 ++-- libft_test/ft_isdigit_test.c | 4 ++-- template_test.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libft_test/ft_isalnum_test.c b/libft_test/ft_isalnum_test.c index 2316aa8..57c14a1 100755 --- a/libft_test/ft_isalnum_test.c +++ b/libft_test/ft_isalnum_test.c @@ -39,7 +39,7 @@ static int expect_counter = 0; dup2(old_stderr_fd, 2); \ } while(0) -#define expect(inp, func, ...) \ +#define expect(func, ...) \ do { \ int old_stdout_fd = dup(1); \ dup2(2, 1); \ @@ -60,4 +60,4 @@ int main(){ test (printf, "%d\n", ft_isalnum('0')); expect(printf, "%d\n", isalnum('0')); return 0; -} +} \ No newline at end of file diff --git a/libft_test/ft_isalpha_test.c b/libft_test/ft_isalpha_test.c index 7ee6ef7..88c35b4 100755 --- a/libft_test/ft_isalpha_test.c +++ b/libft_test/ft_isalpha_test.c @@ -39,7 +39,7 @@ static int expect_counter = 0; dup2(old_stderr_fd, 2); \ } while(0) -#define expect(inp, func, ...) \ +#define expect(func, ...) \ do { \ int old_stdout_fd = dup(1); \ dup2(2, 1); \ @@ -82,4 +82,4 @@ int main(){ test (printf, "%d\n", ft_isalpha('Z' + 1)); expect(printf, "%d\n", isalpha('Z' + 1)); return 0; -} +} \ No newline at end of file diff --git a/libft_test/ft_isdigit_test.c b/libft_test/ft_isdigit_test.c index dd86ee3..990b4cb 100755 --- a/libft_test/ft_isdigit_test.c +++ b/libft_test/ft_isdigit_test.c @@ -39,7 +39,7 @@ static int expect_counter = 0; dup2(old_stderr_fd, 2); \ } while(0) -#define expect(inp, func, ...) \ +#define expect(func, ...) \ do { \ int old_stdout_fd = dup(1); \ dup2(2, 1); \ @@ -84,4 +84,4 @@ int main(){ test (printf, "%d\n", ft_isdigit(127)); expect(printf, "%d\n", isdigit(127)); return 0; -} +} \ No newline at end of file diff --git a/template_test.c b/template_test.c index f4c408f..2599ad0 100644 --- a/template_test.c +++ b/template_test.c @@ -39,7 +39,7 @@ static int expect_counter = 0; dup2(old_stderr_fd, 2); \ } while(0) -#define expect(inp, func, ...) \ +#define expect(func, ...) \ do { \ int old_stdout_fd = dup(1); \ dup2(2, 1); \