diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-06-03 16:00:47 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-06-03 16:00:47 +0200 |
commit | e28e002ebca7b7746cc6a65db84e902634027d40 (patch) | |
tree | a87795b6cdbc63635e70b3ce0450490bbe1f3c36 /tests | |
parent | e5f2875bde2a64c9fec793dc11ade3e8bd0eb2d5 (diff) | |
download | xe-e28e002ebca7b7746cc6a65db84e902634027d40.tar.gz xe-e28e002ebca7b7746cc6a65db84e902634027d40.tar.xz xe-e28e002ebca7b7746cc6a65db84e902634027d40.zip |
tests: reindent
Diffstat (limited to 'tests')
-rwxr-xr-x | tests | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/tests b/tests index c59f4b6..2e59761 100755 --- a/tests +++ b/tests @@ -8,19 +8,19 @@ xe() { "${XE:-./xe}" "$@"; } necho() { for a; do printf '%s\n' "$a"; done; } check_output() { - msg=$1 - expected="$(cat)" - shift - if output="$(eval "$@" 2>&1)"; then - if [ "$output" = "$expected" ]; then - printf 'ok - %s\n' "$msg" - return - fi - fi - printf 'not ok - %s\n' "$msg" - if [ "$output" != "$expected" ]; then - printf 'Unexpected output:\n%s\n' "$output" | sed 's/^/# /' - fi + msg=$1 + expected="$(cat)" + shift + if output="$(eval "$@" 2>&1)"; then + if [ "$output" = "$expected" ]; then + printf 'ok - %s\n' "$msg" + return + fi + fi + printf 'not ok - %s\n' "$msg" + if [ "$output" != "$expected" ]; then + printf 'Unexpected output:\n%s\n' "$output" | sed 's/^/# /' + fi } printf '# simple tests\n' |