From b97d8211fa5c382f32e9a9f606a8566bd2ec09fb Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 30 Jan 2016 18:28:39 -0600 Subject: Add grep -A --- tests/grep.test | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/grep.test') 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" -- cgit v1.2.3