Add Equatable Tuple to tools
This commit is contained in:
@@ -14,6 +14,10 @@ func XCTAssertEqual(test: String, withExpression isTrue: Bool) {
|
||||
print(test)
|
||||
}
|
||||
|
||||
func == <T:Equatable> (tuple1:(T,T),tuple2:(T,T)) -> Bool
|
||||
{
|
||||
return (tuple1.0 == tuple2.0) && (tuple1.1 == tuple2.1)
|
||||
}
|
||||
|
||||
struct Tools {
|
||||
static func readFile(fromPath path: String) -> String {
|
||||
|
||||
Reference in New Issue
Block a user