Commit 130164c
committed
Fix negation operators on arrays to use correct quantifier
For negation operators (IS_NOT, DOES_NOT_CONTAIN, REGEX_DOES_NOT_MATCH),
the match_string method already negates internally. Using any? produced
'at least one element doesn't match' semantics, causing arrays like
['A', 'B'] to match both IS 'A' and IS_NOT 'A' simultaneously.
Changed to use all? for negation operators, ensuring 'all elements
satisfy the negation' (i.e., no element matches the positive condition).1 parent c9f7cb1 commit 130164c
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
86 | 99 | | |
87 | 100 | | |
88 | 101 | | |
| |||
0 commit comments