From c61ea4309e9482e9c795e230144684f8fcb7185f Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Wed, 12 Oct 2022 20:44:11 +0300 Subject: [PATCH] improve failure message --- test/test_helper.bash | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test_helper.bash b/test/test_helper.bash index 78a4f28..08bcb79 100644 --- a/test/test_helper.bash +++ b/test/test_helper.bash @@ -74,8 +74,10 @@ assert_failure() { assert_equal() { if [ "$1" != "$2" ]; then - { echo "expected: $1" - echo "actual: $2" + { echo "expected:" + echo "$1" + echo "actual:" + echo "$2" } | flunk fi }