Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* syntax:
- public func assert(
- _ condition: @autoclosure () -> Bool,
- _ message: @autoclosure () -> String = default,
- file: StaticString = #file,
- line: UInt = #line)
- */
- let minAge = 2
- assert(minAge >= 3, "Age did not meet expectation")
Add Comment
Please, Sign In to add comment