mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Add Towers of Hanoi regression test.
This commit is contained in:
parent
1d7ee7e515
commit
32ad3fd6da
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167536
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)
|
REGRESSION_START($1)
|
||||||
|
|
||||||
echo '1..9'
|
echo '1..10'
|
||||||
|
|
||||||
REGRESSION_TEST(`G', `sed G < regress.in')
|
REGRESSION_TEST(`G', `sed G < regress.in')
|
||||||
REGRESSION_TEST(`P', `sed P < 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(`s3', `echo foo | sed s/,*/,/3')
|
||||||
REGRESSION_TEST(`s4', `echo foo | sed s/,*/,/4')
|
REGRESSION_TEST(`s4', `echo foo | sed s/,*/,/4')
|
||||||
REGRESSION_TEST(`s5', `echo foo | sed s/,*/,/5')
|
REGRESSION_TEST(`s5', `echo foo | sed s/,*/,/5')
|
||||||
|
REGRESSION_TEST(`hanoi', `echo ":abcd: : :" | sed -f hanoi.sed')
|
||||||
|
|
||||||
REGRESSION_END()
|
REGRESSION_END()
|
||||||
|
Loading…
Reference in New Issue
Block a user