aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/grep.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/grep.tests b/testsuite/grep.tests
index 412efffbb..74b0eb63f 100755
--- a/testsuite/grep.tests
+++ b/testsuite/grep.tests
@@ -159,6 +159,12 @@ testing "grep -w ^ doesn't hang" \
"anything\n" \
""
+testing "grep -w word doesn't match wordword" \
+ "grep -w word input" \
+ "" \
+ "wordword\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