test_helper: show diff with whitespace highlights

to be able to see tiny and whitespace differences
This commit is contained in:
Ivan Pozdeev 2026-08-11 01:51:12 +03:00
parent 4a73bd17e2
commit bd7c969e7f

View file

@ -74,8 +74,7 @@ assert_failure() {
assert_equal() {
if [ "$1" != "$2" ]; then
{ echo "expected: \`$1'"
echo "actual: \`$2'"
{ diff -u --label expected --label actual <(echo "$1") <(echo "$2") | cat -te
} | flunk
fi
}