mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 16:31:24 +00:00
fix grep test false positive
This commit is contained in:
parent
2dea01ca11
commit
6da9b00f4f
@ -26,7 +26,9 @@ testing "grep - (specify stdin)" "grep two -" "two\n" "" \
|
||||
testing "grep input (specify file)" "grep two input" "two\n" \
|
||||
"one\ntwo\nthree\nthree\nthree\n" ""
|
||||
|
||||
testing "grep (no newline at EOL)" "grep bug" "bug" "bug" ""
|
||||
# GNU grep (version?) outputs a new line character after the located string
|
||||
# even if there is no new line character in the input
|
||||
testing "grep (no newline at EOL)" "grep bug input" "bug\n" "bug" ""
|
||||
|
||||
>empty
|
||||
testing "grep two files" "grep two input empty 2>/dev/null" \
|
||||
|
Loading…
Reference in New Issue
Block a user