diff options
author | Stepan Kasal <kasal@ucw.cz> | 2003-07-23 05:15:51 +0000 |
---|---|---|
committer | Stepan Kasal <kasal@ucw.cz> | 2003-07-23 05:15:51 +0000 |
commit | ce58ff50a452996ee296faa7ce09882994f4fe1a (patch) | |
tree | 88478465c0b5e5ff66416c18add0d4af15e97571 /tests | |
parent | 7d135b7dd60261a8311d42577f4e8ea2562d3995 (diff) | |
download | grep-ce58ff50a452996ee296faa7ce09882994f4fe1a.tar.gz |
fixed messages
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/backref.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/backref.sh b/tests/backref.sh index 83f6dcc9..cc1632d1 100755 --- a/tests/backref.sh +++ b/tests/backref.sh @@ -1,6 +1,5 @@ #!/bin/sh -# Test that backrefs are local to regex. -# +# Test for backreferences and other things. # : ${srcdir=.} @@ -10,7 +9,7 @@ failures=0 # checking for a palindrome echo "radar" | ${GREP} -e '\(.\)\(.\).\2\1' > /dev/null 2>&1 if test $? -ne 0 ; then - echo "backref: palindrome, test \#1 failed" + echo "Backref: palindrome, test \#1 failed" failures=1 fi @@ -24,14 +23,14 @@ fi # backref are local should be error echo "123" | ${GREP} -e 'a\(.\)' -e 'b\1' > /dev/null 2>&1 if test $? -ne 2 ; then - echo "Options: Backref not local, test \#3 failed" + echo "Backref: Backref not local, test \#3 failed" failures=1 fi -# Pattern should faile +# Pattern should fail echo "123" | ${GREP} -e '[' -e ']' > /dev/null 2>&1 if test $? -ne 2 ; then - echo "Options: Compiled not local, test \#3 failed" + echo "Backref: Compiled not local, test \#3 failed" failures=1 fi |