You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
property("Negative values cause exception")<- forAll {(number:Int)in
number <0==>
errorThrownBy {tryString(number).parseAsConditionalUInt(forElement:"element")} is ParseError<String>}
Sorry if this is the wrong place to ask this... is there any preferred idiom for testing code that should throw an exception using SwiftCheck?
For example, I have the following pair of tests, and I'd like to make the second one less verbose if possible:
The text was updated successfully, but these errors were encountered: