tests: make it clearer what happened when assert_output_contains fails

This commit is contained in:
Jose Diaz-Gonzalez
2025-11-19 23:06:47 -05:00
parent 7a93b11bdd
commit a21ee6f216

View File

@@ -148,7 +148,7 @@ assert_output_contains() {
input="${input/$expected/}"
found=$((found + 1))
done
assert_equal "$count" "$found"
[[ "$count" -eq "$found" ]] || flunk "expected $count occurrences of '$expected', found $found"
}
assert_output_not_contains() {