/* By: agilliar <agilliar@student.42mulhouse.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/10/31 23:55:18 by agilliar #+# #+# */
-/* Updated: 2025/11/01 00:07:17 by agilliar ### ########.fr */
+/* Updated: 2025/11/02 14:15:59 by agilliar ### ########.fr */
/* */
/* ************************************************************************** */
-/*
- cc test.c libftprintf.a && ./a.out > test.out && [ \
- "$(awk "NR % 2 == 1 { print; }" test.out)" \
- == "$(awk "NR % 2 == 0 { print; }" test.out)" ] \
- || echo "TEST FAILED"
-*/
-
#include <stdio.h>
#include <limits.h>
#include "libftprintf.h"
make
-cc test.c libftprintf.a && ./a.out > test.out && [ \
+cc test.c libftprintf.a && valgrind ./a.out > test.out && [ \
"$(awk "NR % 2 == 1 { print; }" test.out)" \
== "$(awk "NR % 2 == 0 { print; }" test.out)" ] \
|| echo "TEST FAILED"