From 2f5b5beb28a3ffe9d12a19b79c453c640cee2f29 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 20 Jan 2013 16:57:19 +0100 Subject: grep: fix grep -Fw not respecting the -w option. Closes 5792 Signed-off-by: Denys Vlasenko --- testsuite/grep.tests | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'testsuite') diff --git a/testsuite/grep.tests b/testsuite/grep.tests index 006a215e1..4781f2284 100755 --- a/testsuite/grep.tests +++ b/testsuite/grep.tests @@ -115,6 +115,18 @@ testing "grep -v -f EMPTY_FILE" \ "" \ "test\n" +testing "grep -Fw matches only words" \ + "grep -Fw foo input" \ + "" \ + "foop\n" \ + "" + +testing "grep -Fw doesn't stop on 1st mismatch" \ + "grep -Fw foo input" \ + "foop foo\n" \ + "foop foo\n" \ + "" + # testing "test name" "commands" "expected result" "file input" "stdin" # file input will be file called "input" # test can create a file "actual" instead of writing to stdout -- cgit v1.2.3