diff options
Diffstat (limited to 'testsuite/grep.tests')
-rwxr-xr-x | testsuite/grep.tests | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/grep.tests b/testsuite/grep.tests index 412efffbb..323b3849d 100755 --- a/testsuite/grep.tests +++ b/testsuite/grep.tests | |||
@@ -159,6 +159,18 @@ testing "grep -w ^ doesn't hang" \ | |||
159 | "anything\n" \ | 159 | "anything\n" \ |
160 | "" | 160 | "" |
161 | 161 | ||
162 | testing "grep -w word doesn't match wordword" \ | ||
163 | "grep -w word input" \ | ||
164 | "" \ | ||
165 | "wordword\n" \ | ||
166 | "" | ||
167 | |||
168 | testing "grep -w word match second word" \ | ||
169 | "grep -w word input" \ | ||
170 | "bword,word\n""wordb,word\n""bwordb,word\n" \ | ||
171 | "bword,word\n""wordb,word\n""bwordb,word\n" \ | ||
172 | "" | ||
173 | |||
162 | # testing "test name" "commands" "expected result" "file input" "stdin" | 174 | # testing "test name" "commands" "expected result" "file input" "stdin" |
163 | # file input will be file called "input" | 175 | # file input will be file called "input" |
164 | # test can create a file "actual" instead of writing to stdout | 176 | # test can create a file "actual" instead of writing to stdout |