From a753565126ccf38f56f65daf854de9a2712253a5 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Thu, 27 Jun 2024 07:30:16 +0200 Subject: [PATCH] add tests --- gameoflife.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: */ -- 2.30.2