Q7

verify-false is broken

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2.20, 1.3.3
  • Fix Version/s: 1.2.21, 1.3.4
  • Component/s: Runtime
  • Labels:
    None
  • Test Mode:
    Manual

Description

This script does not give any error:

get-button "Save (M1+S)" | get-property tooltip | equals "Save (M1+S)" | verify-false

verify-false implementation treats 'equals' as 'matches' and negates a result. So the following happens:

  1. strings are equal. Hm, let's try regexes
  2. String "a (b)" does not match to regex "a (b)" (since braces denote groups in patterns.
  3. great, everything is ok

It should fail fast and do not fall back to regexes in case when strings are exactly the same

Activity

Hide
komaz added a comment - 19/Jun/13 9:31 PM

fixed

Show
komaz added a comment - 19/Jun/13 9:31 PM fixed

People

  • Assignee:
    komaz
    Reporter:
    komaz
Vote (0)
Watch (0)

Dates

  • Created:
    19/Jun/13 7:45 PM
    Updated:
    19/Jun/13 9:31 PM
    Resolved:
    19/Jun/13 9:31 PM