From: Laurent Mazet Date: Tue, 20 Aug 2024 20:56:37 +0000 (+0200) Subject: add tests X-Git-Tag: v1.0~6 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=da564bd3b0854584b8579319e8e7369b2c343058;p=pentomino.git add tests --- diff --git a/pentomino.c b/pentomino.c index 2032ead..02d511c 100644 --- a/pentomino.c +++ b/pentomino.c @@ -398,13 +398,18 @@ int main (int argc, char *argv[]) /* test: pentomino.exe -b list | grep '^board:' */ /* test: pentomino.exe -f 2>&1 | grep 'no file' */ /* test: pentomino.exe -f nofile.pen 2>&1 | grep "can't read file" */ -/* test: pentomino.exe -f bogus.pen 2>&1 | grep 'incorrect file' */ +/* test~: pentomino.exe -f bogus.pen 2>&1 | grep 'incorrect file' */ /* test: pentomino.exe -h | grep usage */ /* test: pentomino.exe -r 2>&1 | grep 'missing max' */ /* test: pentomino.exe -s 2>&1 | grep 'no scale' */ /* test: pentomino.exe -s 4 2>&1 | grep incorrect */ /* test: pentomino.exe -v 2>&1 | grep missing */ /* test: pentomino.exe _ 2>&1 | grep invalid */ -/* test: { sleep 1; echo -n s; sleep 1; echo -n ouuljki; sleep 1; echo q; } | pentomino.exe -s 0 */ +/* test: { sleep 1; echo -n omupijkhyoi; sleep 1; echo q; } | pentomino.exe -s 3 -b 6x10 */ +/* test: { sleep 1; echo -n omupijkhyoi; sleep 1; echo q; } | pentomino.exe -s 2 -b 5x12 */ +/* test: { sleep 1; echo -n omupijkhyoi; sleep 1; echo q; } | pentomino.exe -s 1 -b 4x15 */ +/* test: { sleep 1; echo -n omupijkhyoi; sleep 1; echo q; } | pentomino.exe -s 0 -b 3x20*/ +/* test: { sleep 1; echo -n omupijkhyoi; sleep 1; echo q; } | pentomino.exe -r 12 | grep omupijkhyoiq */ +/* test: { echo -n olkh; sleep 1; echo -n yiijjjjh; sleep 1; echo -n yllllomoolkh; sleep 1; echo -n yukkkjh; sleep 1; echo -n yiioojjjiih; sleep 1; echo -n yljookkkjh; sleep 1; echo -n ylllllulllh; sleep 1; echo -n yoojiiih; sleep 1; echo -n yjjjjjkkkh; sleep 1; echo -n yiih; sleep 1; echo -n yulih; sleep 1; echo -n ylkkllh; sleep 3; echo -n q; } | pentomino.exe */ /* vim: set ts=4 sw=4 et: */