add operators
This commit is contained in:
@@ -68,6 +68,18 @@ evaluate_condition() {
|
|||||||
"!=")
|
"!=")
|
||||||
[[ "$actual" != "$expected" ]]
|
[[ "$actual" != "$expected" ]]
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"contains")
|
||||||
|
[[ "$actual" == *"$expected"* ]]
|
||||||
|
;;
|
||||||
|
|
||||||
|
"startsWith")
|
||||||
|
[[ "$actual" == "$expected"* ]]
|
||||||
|
;;
|
||||||
|
|
||||||
|
"endsWith")
|
||||||
|
[[ "$actual" == *"$expected" ]]
|
||||||
|
;;
|
||||||
|
|
||||||
">"|">="|"<"|"<=")
|
">"|">="|"<"|"<=")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user