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
Post a Comment