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