From a21ee6f21684fd888fcb908c472a45b2c6880b8b Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 19 Nov 2025 23:06:47 -0500 Subject: [PATCH] tests: make it clearer what happened when assert_output_contains fails --- tests/unit/test_helper.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_helper.bash b/tests/unit/test_helper.bash index 06546ce70..ac759139a 100644 --- a/tests/unit/test_helper.bash +++ b/tests/unit/test_helper.bash @@ -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() {