From 74188a547f1712816686c991cb05a381e751122a Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 8 Sep 2025 10:22:41 +0200 Subject: [PATCH] test(convert): adding test for atoi - adding test with whitespace before --- test/convert/test_atoi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/convert/test_atoi.c b/test/convert/test_atoi.c index d065a80..681f7df 100644 --- a/test/convert/test_atoi.c +++ b/test/convert/test_atoi.c @@ -6,7 +6,7 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/09/04 16:54:42 by rparodi #+# #+# */ -/* Updated: 2025/09/05 15:05:21 by rparodi ### ########.fr */ +/* Updated: 2025/09/08 10:07:43 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -19,11 +19,11 @@ int main(void) { const char *str[] = {"", "0", "42", "-42", "+-42", "-2147483648", - "2147483647"}; + "2147483647", "\v\t13", "\r\n7"}; size_t i; i = 0; - while (i < 7) + while (i < 9) { if (ft_atoi(str[i]) != atoi(str[i])) {