mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
StdlibUnittest: add expectEqual(_: Any.Type, _: Any.Type)
This commit is contained in:
@@ -256,6 +256,12 @@ public func expectOptionalEqual${Generic}(
|
||||
|
||||
%end
|
||||
|
||||
public func expectEqual(
|
||||
_ expected: Any.Type, _ actual: Any.Type, ${TRACE}
|
||||
) {
|
||||
expectEqualTest(expected, actual, ${trace}, showFrame: false) { $0 == $1 }
|
||||
}
|
||||
|
||||
public func expectLT<T : Comparable>(_ lhs: T, _ rhs: T, ${TRACE}) {
|
||||
if !(lhs < rhs) {
|
||||
expectationFailure("\(lhs) < \(rhs)", trace: ${trace})
|
||||
|
||||
Reference in New Issue
Block a user