tests: make it clearer what happened when assert_output_contains fails
This commit is contained in:
1 file changed
+1
-1
@@ -148,7 +148,7 @@ assert_output_contains() {
|
|||||||
input="${input/$expected/}"
|
input="${input/$expected/}"
|
||||||
found=$((found + 1))
|
found=$((found + 1))
|
||||||
done
|
done
|
||||||
assert_equal "$count" "$found"
|
[[ "$count" -eq "$found" ]] || flunk "expected $count occurrences of '$expected', found $found"
|
||||||
}
|
}
|
||||||
|
|
||||||
assert_output_not_contains() {
|
assert_output_not_contains() {
|
||||||
|
|||||||
Reference in new issue
Block a user