ios - XCTAssertEqual this or that -


is possible test if result 1 of 2 options?

for example:

let result = "apple" //could "apple" or "orange" let expected1 = "apple" let expected2 = "orange"  xctassertequal(result, expected1 || expected2) 

xctassert(result.isequal(expected1) || result.isequal(expected2)) 

Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -