testutil: more clear output of assert_strequal

the strings are one above the other, and aligned correctly
This commit is contained in:
Khaïs COLIN 2025-03-06 15:06:31 +01:00
parent 2c5d5abdc4
commit e2b6f6f943
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo

View file

@ -6,7 +6,7 @@
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */ /* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/13 15:21:09 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; int ret;
ret = ft_strcmp(str1, str2); 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); assert(ret == 0);
} }