diff options
author | EuAndreh <eu@euandre.org> | 2021-01-24 01:51:14 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-01-24 01:51:14 -0300 |
commit | 8c5882de565aeaecc76362c9227f844266e762bf (patch) | |
tree | 4f248b5d9627ebd94841c3b748ebfe46dc4c4b3c /tests/lib.sh | |
parent | cli-opts.sh: Break long line (diff) | |
download | remembering-8c5882de565aeaecc76362c9227f844266e762bf.tar.gz remembering-8c5882de565aeaecc76362c9227f844266e762bf.tar.xz |
Add test to for help flags
Diffstat (limited to '')
-rwxr-xr-x | tests/lib.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib.sh b/tests/lib.sh index fb50d8a..901ceb9 100755 --- a/tests/lib.sh +++ b/tests/lib.sh @@ -12,3 +12,11 @@ assert_status() { exit 1 fi } + +assert_empty_stderr() { + if [ "$(cat "$ERR")" != '' ]; then + echo "Expected STDERR ($ERR) to be empty, but has content:" + cat "$ERR" + exit 1 + fi +} |