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 -

jquery - ReferenceError: CKEDITOR is not defined -

android - Go back to previous fragment -