diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/grep.test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/grep.test b/tests/grep.test index c6171112..215491c2 100755 --- a/tests/grep.test +++ b/tests/grep.test @@ -199,3 +199,6 @@ testing "-Fix" "grep -Fix h input" "H\nh\n" \ "missing\nH\nthis is HELLO\nthis is WORLD\nh\nmissing" "" testing "-f /dev/null" "grep -f /dev/null" "" "" "hello\n" testing "-z with \n in pattern" "grep -f input" "hi\nthere\n" "i\nt" "hi\nthere" + +testing "print zero length match" "grep '[0-9]*'" "abc\n" "" "abc\n" +testing "-o skip zero length match" "grep -o '[0-9]*'" "1234\n" "" "a1234b" |