Skip to content

Instantly share code, notes, and snippets.

@cjnevin
Created November 1, 2022 03:17
Show Gist options
  • Save cjnevin/f7a7cbe688f9eb8aa6e3b3ee91dcdd48 to your computer and use it in GitHub Desktop.
Save cjnevin/f7a7cbe688f9eb8aa6e3b3ee91dcdd48 to your computer and use it in GitHub Desktop.
extension Assert where T: Equatable {
func equal(to other: T, file: StaticString = #file, line: UInt = #line) {
XCTAssertEqual(value, other, file: file, line: line)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment