Skip to content

Commit 975829a

Browse files
committed
style(assert_not_matched): unexpected pattern renamed to unexpected
1 parent 898e6e3 commit 975829a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bash_unit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ assert_matches() {
133133
}
134134

135135
assert_not_matches() {
136-
local expected=$1
136+
local unexpected=$1
137137
local actual=$2
138138
local message=${3:-}
139139
[[ -z $message ]] || message="$message\n"
140140

141-
if [[ "${actual}" =~ ${expected} ]]; then
142-
fail "$message expected regex [$expected] should not match but matched [$actual]"
141+
if [[ "${actual}" =~ ${unexpected} ]]; then
142+
fail "$message expected regex [$unexpected] should not match but matched [$actual]"
143143
fi
144144
}
145145

0 commit comments

Comments
 (0)