From e2b6f6f9434f0e320fc679bcbd7baaa65e7ae583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kha=C3=AFs=20COLIN?= Date: Thu, 6 Mar 2025 15:06:31 +0100 Subject: [PATCH] testutil: more clear output of assert_strequal the strings are one above the other, and aligned correctly --- tests/testutil.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/testutil.c b/tests/testutil.c index ad9d112..700b25f 100644 --- a/tests/testutil.c +++ b/tests/testutil.c @@ -6,7 +6,7 @@ /* By: khais +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/02/13 15:21:09 by khais #+# #+# */ -/* Updated: 2025/02/14 18:07:01 by khais ### ########.fr */ +/* Updated: 2025/03/06 15:30:52 by khais ### ########.fr */ /* */ /* ************************************************************************** */ @@ -18,6 +18,7 @@ void assert_strequal(char *str1, char *str2) int ret; ret = ft_strcmp(str1, str2); - ft_dprintf(STDERR_FILENO, "Expected '%s' to eq '%s'\n", str1, str2); + ft_dprintf(STDERR_FILENO, "Expected\t[%s]\n", str1); + ft_dprintf(STDERR_FILENO, "to eq \t[%s]\n", str2); assert(ret == 0); }