From: Laurent Mazet Date: Thu, 27 Jun 2024 05:30:16 +0000 (+0200) Subject: add tests X-Git-Tag: v1.0~1^2~1 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=a753565126ccf38f56f65daf854de9a2712253a5;p=gameoflife.git add tests --- diff --git a/gameoflife.c b/gameoflife.c index 0c2fa5e..e533f79 100644 --- a/gameoflife.c +++ b/gameoflife.c @@ -353,9 +353,10 @@ int main (int argc, char *argv[]) /* test: gameoflife.exe -y 2>&1 | grep 'no height' */ /* test: gameoflife.exe _ 2>&1 | grep invalid */ /* test: echo -n q | gameoflife.exe */ -/* test: { echo oclllldckkkrcjjjjcxfcilililecs; sleep 5; echo -n q; } | gameoflife.exe -e glider.gol -s 2 */ -/* test: { echo icklckcjcjckjs; sleep 2; echo; sleep 1; echo -n q; } | gameoflife.exe -x 10 -y 10 -v 2 */ +/* test: { echo oclllldckkkrcjjjjcxfcilililec; echo sleep 5; echo -n q; } | gameoflife.exe -e glider.gol -s 2 */ +/* test: { echo icklckcjcjckjsboard.gol; echo; sleep 2; echo; sleep 1; echo -n q; } | gameoflife.exe -x 10 -y 10 -v 2 */ /* test: { sleep 4; echo -n q; } | gameoflife.exe -p board.gol -s 1 */ /* test: { echo uucllllrckkkkjjd; sleep 3; echo -n q; } | gameoflife.exe -e beehive.gol:block.gol -s 1 */ +/* test: echo -ne 'cklcklcklcklcsx\bboard.gol\eq' | gameoflife.exe */ /* vim: set ts=4 sw=4 et: */