add operators
This commit is contained in:
1 parent
60b16feb1c
commit
9736962562
1 file changed
+12
@@ -69,6 +69,18 @@ evaluate_condition() {
|
||||
[[ "$actual" != "$expected" ]]
|
||||
;;
|
||||
|
||||
"contains")
|
||||
[[ "$actual" == *"$expected"* ]]
|
||||
;;
|
||||
|
||||
"startsWith")
|
||||
[[ "$actual" == "$expected"* ]]
|
||||
;;
|
||||
|
||||
"endsWith")
|
||||
[[ "$actual" == *"$expected" ]]
|
||||
;;
|
||||
|
||||
">"|">="|"<"|"<=")
|
||||
|
||||
if [[ ! "$actual" =~ ^-?[0-9]+$ ]]; then
|
||||
|
||||
Reference in new issue
Block a user