From 7ae0f2de576da8d2ed85aabfa38de97b2526a9a0 Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Mon, 28 Mar 2022 22:34:17 +0200 Subject: [PATCH] Expected string can be a regex now --- test/test_rdlink.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_rdlink.sh b/test/test_rdlink.sh index dd7fe79..c3d6454 100755 --- a/test/test_rdlink.sh +++ b/test/test_rdlink.sh @@ -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