Skip to content

Commit 6222889

Browse files
author
David Dunn
committed
Change to XCTAssertEqual
1 parent 26cc863 commit 6222889

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TestFoundation/TestNSDictionary.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,14 @@ class TestNSDictionary : XCTestCase {
223223
func test_valueForKey() {
224224
let dict: NSDictionary = ["foo": "bar"]
225225
let result = dict.value(forKey: "foo")
226-
XCTAssert(result as? String == "bar")
226+
XCTAssertEqual(result as? String, "bar")
227227
}
228228

229229
func test_valueForKeyWithNestedDict() {
230230
let dict: NSDictionary = ["foo": ["bar": "baz"]]
231231
let result = dict.value(forKey: "foo")
232232
let expectedResult: NSDictionary = ["bar": "baz"]
233-
XCTAssert(result as? NSDictionary == expectedResult)
233+
XCTAssertEqual(result as? NSDictionary, expectedResult)
234234
}
235235

236236
private func createTestFile(_ path: String, _contents: Data) -> String? {

0 commit comments

Comments
 (0)