diff options
author | Bryan Drewery <bryan@shatow.net> | 2018-02-07 02:47:42 +0300 |
---|---|---|
committer | Bryan Drewery <bryan@shatow.net> | 2018-02-07 02:47:42 +0300 |
commit | 21ff770e01fcc3f4ba91ccf2c417111c4e3d5401 (patch) | |
tree | b04aa1a2b90d4a470a0fa5d9748f65541f209930 /test | |
parent | b21b9467bace5cc55b4b64a5a1219f0282cb4bd8 (diff) |
assert: Properly check for newline differences
Diffstat (limited to 'test')
-rw-r--r-- | test/common.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/common.sh b/test/common.sh index d5be0464..2dc537df 100644 --- a/test/common.sh +++ b/test/common.sh @@ -54,8 +54,8 @@ msg_dev() { assert() { [ $# -eq 3 ] || eargs assert expected actual msg - local expected="$(echo "$1" | cat -v)" - local actual="$(echo "$2" | cat -v)" + local expected="$(echo "$1" | cat -ev)" + local actual="$(echo "$2" | cat -ev)" local msg="$3" : ${EXITVAL:=0} @@ -73,8 +73,8 @@ assert() { assert_not() { [ $# -eq 3 ] || eargs assert_not notexpected actual msg - local notexpected="$(echo "$1" | cat -v)" - local actual="$(echo "$2" | cat -v)" + local notexpected="$(echo "$1" | cat -ev)" + local actual="$(echo "$2" | cat -ev)" local msg="$3" : ${EXITVAL:=0} |