More tests

This commit is contained in:
Leonardo Algarra 2025-10-24 21:41:35 +02:00
parent 703da620bf
commit 367925d077

View file

@ -6,7 +6,7 @@
/* By: lalgarra <lalgarra@student.42madrid.com> +#+ +:+ +#+ */ /* By: lalgarra <lalgarra@student.42madrid.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/10/15 18:54:32 by lalgarra #+# #+# */ /* Created: 2025/10/15 18:54:32 by lalgarra #+# #+# */
/* Updated: 2025/10/24 20:48:52 by lalgarra ### ########.fr */ /* Updated: 2025/10/24 21:20:29 by lalgarra ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -555,6 +555,23 @@ static void test99()
ft_printf("ret=%i\n", ret); ft_printf("ret=%i\n", ret);
} }
static void test29()
{
char prefix[128];
char sfmt[128];
int ret;
strcpy(prefix, "test29: ");
strcpy(sfmt, "%%8.5u,%%-8.5u,%%.u,%%08.5u:%8.5u,%-8.5u,%.u,%08.5u--eof; ");
printf("%s printf(): ", prefix);
ret = printf(sfmt, 34, 8, 0, 34);
printf("ret=%i\n", ret);
fflush(stdout);
ft_printf("%sft_printf(): ", prefix);
ret = ft_printf(sfmt, 34, 8, 0, 34);
ft_printf("ret=%i\n", ret);
}
int main(void) int main(void)
{ {
test01(); test01();
@ -585,6 +602,7 @@ int main(void)
test26(); test26();
test27(); test27();
test28(); test28();
test29();
test50(); test50();
test99(); test99();
return (0); return (0);