5
我有一種方法:無法找到XCTAssertEqual接受類型的參數列表([字符串:AnyObject],[字符串:AnyObject])的過載
func tableAsDictionary() -> [String: AnyObject]
然後我需要測試此:
let tableDictionary = table.tableAsDictionary()
let expectedDictionary: [String: AnyObject] = [
"id": "1234",
"name": "Next to window",
"number": 23
]
XCTAssertEqual(tableDictionary, expectedDictionary) //error
無法找到
XCTAssertEqual
接受類型的參數列表中的過載[String : AnyObject], [String : AnyObject]
你是完全正確的:-)謝謝 –