You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This could definitely be improved, thanks @nsalmoria! Do you happen to know if this is a recent change in behavior, or has swift-corelibs-xctest always acted in this way?
No need to be embarrassed![]( I only ask because it would be easier to suggest a fix if it were a recent regression -- we could pinpoint the commit that introduced this. In any case, thanks for the report)! I'll try and take a look in the next week or so. Of course anyone should feel welcome to grab this task before then. 🙂
Environment
Swift Development Snapshot 2016-05-03 (a), Xcode 7.3.1
Additional Detail from JIRA
md5: 2a54820de78ceab6bbb23475c5f7f798
Issue Description:
When using XCTAssertEqual() to test that two values are equal, the error message in case of failure always assumes that the two values are Optional.
For example, this line:
XCTAssertEqual(1, 2)
prints:
XCTAssertEqual failed: ("Optional(1)") is not equal to ("Optional(2)")
This is confusing since the values passed to XCTAsserEqual are not Optionals, and adds visual noise to the error report.
It would be expected that the error should simply be
XCTAssertEqual failed: ("1") is not equal to ("2")
The text was updated successfully, but these errors were encountered: