Expected string can be a regex now
This commit is contained in:
@@ -230,7 +230,7 @@ rl::testcmp() {
|
||||
local testresult_graphic="${color_red}✗${color_less}" # alt. symbol ≠
|
||||
local link="$(readlink -- "${input}")"
|
||||
|
||||
if [[ "${expect}" == "${actual}" ]] ; then
|
||||
if [[ "${actual}" =~ ${expect} ]] ; then
|
||||
# Don't print success for this flag
|
||||
(( flag_printerror )) && return 0
|
||||
testresult=1
|
||||
|
Reference in New Issue
Block a user