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:
authorZoltan Tombol <zoltan.tombol@gmail.com>2016-02-26 21:23:20 +0300
committerZoltan Tombol <zoltan.tombol@gmail.com>2016-02-26 21:23:20 +0300
commitbd7ece6cb495ba2f4cb7360226c6ba4966c1b7f6 (patch)
tree01692a66e9f6f935953da4a634fe8a423ca59d42 /src
parentc529cbe996cc01d19d000048ff691014d150f7c2 (diff)
Fix -- handling in output and line matching functions
Diffstat (limited to 'src')
-rw-r--r--src/assert.bash8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/assert.bash b/src/assert.bash
index 78b8416..58090dc 100644
--- a/src/assert.bash
+++ b/src/assert.bash
@@ -215,7 +215,7 @@ assert_output() {
case "$1" in
-p|--partial) is_mode_partial=1; shift ;;
-e|--regexp) is_mode_regexp=1; shift ;;
- --) break ;;
+ --) shift; break ;;
*) break ;;
esac
done
@@ -308,7 +308,7 @@ refute_output() {
case "$1" in
-p|--partial) is_mode_partial=1; shift ;;
-e|--regexp) is_mode_regexp=1; shift ;;
- --) break ;;
+ --) shift; break ;;
*) break ;;
esac
done
@@ -424,7 +424,7 @@ assert_line() {
;;
-p|--partial) is_mode_partial=1; shift ;;
-e|--regexp) is_mode_regexp=1; shift ;;
- --) break ;;
+ --) shift; break ;;
*) break ;;
esac
done
@@ -604,7 +604,7 @@ refute_line() {
;;
-p|--partial) is_mode_partial=1; shift ;;
-e|--regexp) is_mode_regexp=1; shift ;;
- --) break ;;
+ --) shift; break ;;
*) break ;;
esac
done