Created
August 10, 2018 09:25
-
-
Save yannxou/416d52dd4eba25d71c963e7eb74782a1 to your computer and use it in GitHub Desktop.
Custom assertions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Xcode will notify in the appropiate line when the custom assertion function fails | |
| func assertSomething(with param: InterestingObject, file: StaticString = #file, line: UInt = #line) { | |
| XCTFail("Bad bad", file: file, line: line) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment