Browse Source

improve failure message

pull/440/head
Ivan Pozdeev 1 year ago
parent
commit
c61ea4309e
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      test/test_helper.bash

+ 4
- 2
test/test_helper.bash View File

@ -74,8 +74,10 @@ assert_failure() {
assert_equal() { assert_equal() {
if [ "$1" != "$2" ]; then if [ "$1" != "$2" ]; then
{ echo "expected: $1"
echo "actual: $2"
{ echo "expected:"
echo "$1"
echo "actual:"
echo "$2"
} | flunk } | flunk
fi fi
} }

Loading…
Cancel
Save