mirror of
https://github.com/pyenv/pyenv.git
synced 2026-10-02 23:41:06 +09:00
test_helper: show diff with whitespace highlights
to be able to see tiny and whitespace differences
This commit is contained in:
parent
4a73bd17e2
commit
bd7c969e7f
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user