diff options
author | EuAndreh <eu@euandre.org> | 2021-01-24 03:11:52 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-01-24 03:11:52 -0300 |
commit | ee6bc4f2ce6da48f25a29931a178159e5801b5d9 (patch) | |
tree | e5b13643b29bd51f06d382fde00ed3ce01199423 /tests/cli-opts.sh | |
parent | TODOs.md: Add task-b2c26218-5f21-4efd-afbd-ff6af57a358a (diff) | |
download | remembering-ee6bc4f2ce6da48f25a29931a178159e5801b5d9.tar.gz remembering-ee6bc4f2ce6da48f25a29931a178159e5801b5d9.tar.xz |
Add tests/ranking.sh
Diffstat (limited to '')
-rwxr-xr-x | tests/cli-opts.sh | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/cli-opts.sh b/tests/cli-opts.sh index 0b6090a..cca2228 100755 --- a/tests/cli-opts.sh +++ b/tests/cli-opts.sh @@ -5,8 +5,8 @@ set -u assert_usage() { if ! grep -Fq 'Usage' "$1"; then - echo 'Expected to find "Usage" text, it was missing:' - cat "$ERR" + echo 'Expected to find "Usage" text, it was missing:' >&2 + cat "$ERR" >&2 exit 1 fi } @@ -79,11 +79,7 @@ test_valid_options() { STATUS=$? assert_status 0 assert_empty_stderr - if [ "$(cat "$OUT")" != 'a' ]; then - echo "Expected STDOUT ($OUT) to be 'a', but was:" - cat "$OUT" - exit 1 - fi + assert_stdout 'a' } test_help_flags() { |