We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26cc863 commit 6222889Copy full SHA for 6222889
TestFoundation/TestNSDictionary.swift
@@ -223,14 +223,14 @@ class TestNSDictionary : XCTestCase {
223
func test_valueForKey() {
224
let dict: NSDictionary = ["foo": "bar"]
225
let result = dict.value(forKey: "foo")
226
- XCTAssert(result as? String == "bar")
+ XCTAssertEqual(result as? String, "bar")
227
}
228
229
func test_valueForKeyWithNestedDict() {
230
let dict: NSDictionary = ["foo": ["bar": "baz"]]
231
232
let expectedResult: NSDictionary = ["bar": "baz"]
233
- XCTAssert(result as? NSDictionary == expectedResult)
+ XCTAssertEqual(result as? NSDictionary, expectedResult)
234
235
236
private func createTestFile(_ path: String, _contents: Data) -> String? {
0 commit comments