Skip to content

Commit 17451d1

Browse files
committed
Fixes a Cast Issue with one of the Foundation Tests
Without this, the tests don't build on Darwin w/4.2:
1 parent 59df77d commit 17451d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TestFoundation/TestNSError.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class TestNSError : XCTestCase {
4646
let nsdictionary = ["error": error] as NSDictionary
4747
let dictionary = nsdictionary as? Dictionary<String, Error>
4848
XCTAssertNotNil(dictionary)
49-
XCTAssertEqual(error, dictionary?["error"] as NSError?)
49+
XCTAssertEqual(error, dictionary?["error"] as? NSError)
5050
}
5151

5252
func test_CustomNSError_domain() {

0 commit comments

Comments
 (0)