@@ -334,10 +346,14 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
EOF
timeout 2s bash -c"./tesh < $ti">$to 2>&1
displayNotTest $ti$to$te
test_nb=$((test_nb+1))
if!grep-Pzo"sortie de echo\n0 ->.*\n1 ->.*\n2 ->.*\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."$to> /dev/null;then
echo"ERROR outputs do not match."
echo"(Ne pas tester dans VSCode)"
exit 1
test_failed=$((test_failed+1))
printf"${Red}==> Test#${test_nb} : ERROR outputs do not match.${Color_Off}\n"
@@ -353,9 +369,13 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
EOF
timeout 2s bash -c"./tesh < $ti">$to 2>&1
displayNotTest $ti$to$te
test_nb=$((test_nb+1))
if!grep-Pzo"0 ->.*\n1 ->.*\n2 ->.*\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."$to> /dev/null;then
echo"ERROR outputs do not match."
exit 1
test_failed=$((test_failed+1))
printf"${Red}==> Test#${test_nb} : ERROR outputs do not match.${Color_Off}\n"
@@ -379,9 +399,13 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor i
EOF
timeout 2s bash -c"./tesh < $ti">$to 2>&1
displayNotTest $ti$to$te
test_nb=$((test_nb+1))
if!grep-Pzo"0 ->.*\n1 ->.*\n2 ->.*\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n0 ->.*\n1 ->.*\n2 ->.*\nLorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."$to> /dev/null;then
echo"ERROR outputs do not match."
exit 1
test_failed=$((test_failed+1))
printf"${Red}==> Test#${test_nb} : ERROR outputs do not match.${Color_Off}\n"
@@ -396,25 +420,48 @@ Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu
EOF
timeout 2s bash -c"./tesh < $ti">$to 2>&1
displayNotTest $ti$to$te
test_nb=$((test_nb+1))
if!grep-Pzo"0 ->.*\n1 ->.*\n2 ->.*\nDuis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur."$to> /dev/null;then
echo"ERROR outputs do not match."
exit 1
test_failed=$((test_failed+1))
printf"${Red}==> Test#${test_nb} : ERROR outputs do not match.${Color_Off}\n"