mirror of
https://github.com/GnoConsortium/gno.git
synced 2024-08-29 23:29:01 +00:00
19 lines
490 B
Plaintext
19 lines
490 B
Plaintext
|
# Test regular expression execution test
|
||
|
cd /src/gno/usr.bin/sed
|
||
|
|
||
|
echo "sed tests that take a long time"
|
||
|
echo ""
|
||
|
|
||
|
echo "Test # 1: Expression evaluation via sed (result = 24)"
|
||
|
echo '(4+4)*3' | time ./sed -f tests/math.sed
|
||
|
|
||
|
echo ""
|
||
|
echo "Test # 2: Towers of Hanoi; must be run interactively"
|
||
|
echo "Execute the command"
|
||
|
echo " sed -f hanoi.sed"
|
||
|
echo "and enter the text"
|
||
|
echo " :abc: : :"
|
||
|
echo ""
|
||
|
echo "with *two* carriage returns. It will take a long time to"
|
||
|
echo "print any results."
|