StdlibUnittest: add expectEqual(_: Any.Type, _: Any.Type)

This commit is contained in:
Dmitri Gribenko
2016-07-28 17:56:56 -07:00
parent c9d465667a
commit fd627ff015
2 changed files with 24 additions and 0 deletions

View File

@@ -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})