MirrorDiffKit:从凌乱的XCTAssertEqual消息中毕业
文件大小: 668k
源码售价: 10 个金币 积分规则     积分充值
资源说明:提供两种功能以进行有效测试的工具: 2种任何类型之间的输出差异 任何类型的Equatable的默认实现 平台 状态 苹果系统 Linux 用法 diff(between: T, and: T) import MirrorDiffKit // Input 2 structs or classes implements Equatable: let a = Example ( key1 : " I'm not changed " , key2 : " I'm deleted " ) let b = Example ( key1 : " I'm not changed " , key2 : " I'm inserted " ) XCTAssertEqual (a, b, diff ( between : a, and : b)) // XCTAssertEqual failed: ("Example(key1: "I\'m not changed", key2: "I\'m deleted")") is not equal to ("Exampl
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。