This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Makes testings dictionaries berable in Swift. It correctly tests heterogenous dictionaries | |
/// | |
/// E.g.: | |
/// let expected: [String: Any] = ["p": true] | |
/// let actual = doSomething() // returns [String: Any] | |
/// XCTAssertEqual(actual, expected) | |
/// | |
public func XCTAssertEqual<K, V>(_ expression1: @autoclosure () throws -> [K: V], _ expression2: @autoclosure () throws -> [K: V], _ message: @autoclosure () -> String? = nil, file: StaticString = #file, line: UInt = #line) { | |
do { | |
let lhs = try expression1() as NSDictionary |
OlderNewer