More tests
This commit is contained in:
parent
703da620bf
commit
367925d077
1 changed files with 19 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: lalgarra <lalgarra@student.42madrid.com> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* 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);
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
test01();
|
||||
|
|
@ -585,6 +602,7 @@ int main(void)
|
|||
test26();
|
||||
test27();
|
||||
test28();
|
||||
test29();
|
||||
test50();
|
||||
test99();
|
||||
return (0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue