aboutsummaryrefslogtreecommitdiff
path: root/tests/grep.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/grep.test')
-rwxr-xr-xtests/grep.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/grep.test b/tests/grep.test
index f3bc9a3b..be8bc85c 100755
--- a/tests/grep.test
+++ b/tests/grep.test
@@ -97,3 +97,6 @@ testing "grep -w \\1" "grep -wo '\\(x\\)\\1'" "xx\n" "" "xx"
testing "grep -o ''" "grep -o '' input" "" "one one one\n" ""
testing "grep backref" 'grep -e "a\(b\)" -e "b\(c\)\1"' "bcc\nab\n" \
"" "bcc\nbcb\nab\n"
+
+testing "grep -A" "grep -A 2 yes" "yes\nno\nno\n--\nyes\nno\nno\nyes\nno\n" \
+ "" "yes\nno\nno\nno\nyes\nno\nno\nyes\nno"