Use StaticString for file in XCTest helpers
This commit is contained in:
parent
966734d9d7
commit
e5be80763d
|
|
@ -58,7 +58,7 @@ Event is considered equal if:
|
|||
- parameter lhs: first set of events.
|
||||
- parameter lhs: second set of events.
|
||||
*/
|
||||
public func XCTAssertEqual<T: Equatable>(lhs: [Event<T>], _ rhs: [Event<T>], file: String = __FILE__, line: UInt = __LINE__) {
|
||||
public func XCTAssertEqual<T: Equatable>(lhs: [Event<T>], _ rhs: [Event<T>], file: StaticString = __FILE__, line: UInt = __LINE__) {
|
||||
let leftEquatable = lhs.map { AnyEquatable(target: $0, comparer: ==) }
|
||||
let rightEquatable = rhs.map { AnyEquatable(target: $0, comparer: ==) }
|
||||
#if os(Linux)
|
||||
|
|
@ -86,7 +86,7 @@ Event is considered equal if:
|
|||
- parameter lhs: first set of events.
|
||||
- parameter lhs: second set of events.
|
||||
*/
|
||||
public func XCTAssertEqual<T: Equatable>(lhs: [Recorded<Event<T>>], _ rhs: [Recorded<Event<T>>], file: String = __FILE__, line: UInt = __LINE__) {
|
||||
public func XCTAssertEqual<T: Equatable>(lhs: [Recorded<Event<T>>], _ rhs: [Recorded<Event<T>>], file: StaticString = __FILE__, line: UInt = __LINE__) {
|
||||
let leftEquatable = lhs.map { AnyEquatable(target: $0, comparer: ==) }
|
||||
let rightEquatable = rhs.map { AnyEquatable(target: $0, comparer: ==) }
|
||||
#if os(Linux)
|
||||
|
|
|
|||
Loading…
Reference in New Issue