Add Towers of Hanoi regression test.

This commit is contained in:
Diomidis Spinellis 2007-03-14 07:52:38 +00:00
parent 1d7ee7e515
commit 32ad3fd6da
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,17 @@
:abcd: : :
:abc : :d :
:ab :c :d :
:ab :cd : :
:a :cd :b :
:ad :c :b :
:ad : :bc :
:a : :bcd :
: :a :bcd :
: :ad :bc :
:c :ad :b :
:cd :a :b :
:cd :ab : :
:c :ab :d :
: :abc :d :
: :abcd: :
Done! Try another, or end with ^D.

View File

@ -2,7 +2,7 @@
REGRESSION_START($1)
echo '1..9'
echo '1..10'
REGRESSION_TEST(`G', `sed G < regress.in')
REGRESSION_TEST(`P', `sed P < regress.in')
@ -13,5 +13,6 @@ REGRESSION_TEST(`sg', `echo foo | sed s/,*/,/g')
REGRESSION_TEST(`s3', `echo foo | sed s/,*/,/3')
REGRESSION_TEST(`s4', `echo foo | sed s/,*/,/4')
REGRESSION_TEST(`s5', `echo foo | sed s/,*/,/5')
REGRESSION_TEST(`hanoi', `echo ":abcd: : :" | sed -f hanoi.sed')
REGRESSION_END()