Add Towers of Hanoi regression test.
This commit is contained in:
parent
1d7ee7e515
commit
32ad3fd6da
17
tools/regression/usr.bin/sed/regress.hanoi.out
Normal file
17
tools/regression/usr.bin/sed/regress.hanoi.out
Normal 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.
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user