X-Git-Url: https://git.hcoop.net/jackhill/mal.git/blobdiff_plain/31cc710f064c0c51181423faf93ca3fccf1f357c..306ba5eb433345694467b570d2212cde7207e07e:/run_argv_test.sh?ds=sidebyside diff --git a/run_argv_test.sh b/run_argv_test.sh index 3de3efd4..0e5db2ad 100755 --- a/run_argv_test.sh +++ b/run_argv_test.sh @@ -23,7 +23,7 @@ fi root="$(dirname $0)" -out="$( $@ $root/tests/print_argv.mal aaa bbb ccc )" +out="$( $@ $root/tests/print_argv.mal aaa bbb ccc | tr -d '\r' )" assert_equal '("aaa" "bbb" "ccc")' "$out" # Note: The 'make' implementation cannot handle arguments with spaces in them, @@ -32,7 +32,7 @@ assert_equal '("aaa" "bbb" "ccc")' "$out" # out="$( $@ $root/tests/print_argv.mal aaa 'bbb ccc' ddd )" # assert_equal '("aaa" "bbb ccc" "ddd")' "$out" -out="$( $@ $root/tests/print_argv.mal )" +out="$( $@ $root/tests/print_argv.mal | tr -d '\r' )" assert_equal '()' "$out" echo 'Passed all *ARGV* tests'