This script does not give any error:
verify-false implementation treats 'equals' as 'matches' and negates a result. So the following happens:
- strings are equal. Hm, let's try regexes
- String "a (b)" does not match to regex "a (b)" (since braces denote groups in patterns.
- great, everything is ok
It should fail fast and do not fall back to regexes in case when strings are exactly the same