here_doc: handle input with correct end marker

This commit is contained in:
Khaïs COLIN 2025-03-11 13:30:40 +01:00
parent a6d1386574
commit 7c6d061c6c
Signed by: logistic-bot
SSH key fingerprint: SHA256:RlpiqKeXpcPFZZ4y9Ou4xi2M8OhRJovIwDlbCaMsuAo
8 changed files with 191 additions and 44 deletions

View file

@ -6,7 +6,7 @@
/* By: khais <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/13 15:21:09 by khais #+# #+# */
/* Updated: 2025/03/09 12:37:10 by khais ### ########.fr */
/* Updated: 2025/03/11 11:46:04 by khais ### ########.fr */
/* */
/* ************************************************************************** */
@ -17,9 +17,11 @@ void assert_strequal(char *str1, char *str2)
{
int ret;
ret = ft_strcmp(str1, str2);
ft_dprintf(STDERR_FILENO, "Expected\t[%s]\n", str1);
ft_dprintf(STDERR_FILENO, "to eq \t[%s]\n", str2);
if (str1 == str2)
return ;
ret = ft_strcmp(str1, str2);
assert(ret == 0);
}