Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bats-core/bats-assert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJason Karns <jason@karns.name>2016-09-26 16:58:10 +0300
committerJason Karns <jason@karns.name>2016-09-26 16:58:10 +0300
commitd1c641a0793744656d283f819215686f4069ee14 (patch)
tree56e178c4527ca93f82f056452299672cf2d27ec4 /src
parent2300d7b70f48cf90abe4aea2437068527dd99645 (diff)
Improve failure messageassert-refute-empty
Diffstat (limited to 'src')
-rw-r--r--src/assert.bash5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/assert.bash b/src/assert.bash
index a52454a..178e299 100644
--- a/src/assert.bash
+++ b/src/assert.bash
@@ -336,8 +336,9 @@ refute_output() {
# Matching.
if (( is_mode_empty )); then
if [ -n "$output" ]; then
- echo 'expected no output, but output was non-empty' \
- | batslib_decorate 'unexpected output' \
+ batslib_print_kv_single_or_multi 6 \
+ 'output' "$output" \
+ | batslib_decorate 'output non-empty, but expected no output' \
| fail
fi
elif (( is_mode_regexp )); then