test(convert): adding test for atoi

- adding test with whitespace before
This commit is contained in:
Raphael 2025-09-08 10:22:41 +02:00
parent 28be9d6b91
commit 74188a547f
No known key found for this signature in database

View file

@ -6,7 +6,7 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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]))
{