add operators

This commit is contained in:
2026-07-22 14:56:39 +02:00
parent 60b16feb1c
commit 9736962562
+12
View File
@@ -69,6 +69,18 @@ evaluate_condition() {
[[ "$actual" != "$expected" ]]
;;
"contains")
[[ "$actual" == *"$expected"* ]]
;;
"startsWith")
[[ "$actual" == "$expected"* ]]
;;
"endsWith")
[[ "$actual" == *"$expected" ]]
;;
">"|">="|"<"|"<=")
if [[ ! "$actual" =~ ^-?[0-9]+$ ]]; then