add tests
authorLaurent Mazet <mazet@softndesign.org>
Tue, 20 Aug 2024 20:56:37 +0000 (22:56 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Tue, 20 Aug 2024 20:56:37 +0000 (22:56 +0200)
pentomino.c

index 2032eada2de6d5c1fbe8143b252343241a6d7b16..02d511cae64c619ee4052b6416a0589d9b36e672 100644 (file)
@@ -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: */