Add: itao + strdup tests

This commit is contained in:
2026-01-25 17:41:52 +01:00
parent cf491b279d
commit d8824f7890
12 changed files with 241 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 02_negatif.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dgaillet <dgaillet@student.42lyon.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/01/25 17:12:34 by dgaillet #+# #+# */
/* Updated: 2026/01/25 17:12:34 by dgaillet ### ########lyon.fr */
/* */
/* ************************************************************************** */
#include "../tests.h"
int itoa_negatif_test(void)
{
char *str;
int res;
str = ft_itoa(-42);
res = ft_strncmp(str, "-42", 10);
free(str);
return (res);
}