⚠️ Breaking Changes Ahead ⚠️
For SwiftCheck's 5th birthday, we sped up all the insides and moved the furniture around a bit.
- The insides of
Gen
move an order of magnitude quicker because of framework-wide simplifications. - We now match Swift's naming convention for some big combinators (esp.
map
andflatMap
). Update your code accordingly! - Currying syntax has been removed framework-wide and labels have been made more semantically meaningful.
Gen.fromShufflingElementsOf
is unbelievably fast now.- pseudo-Equatable instances for modifier types have been removed.
- More things have been documented and what documentation there is has been improved.
- Quantifiers and property binders have more informative
@warn_unused_result
messages.
Finally, for the pièce de résistance, cover
has been made a first-class citizen of the framework. For those times when a particular property of a spec should hold a certain percentage of the time, you can ask SwiftCheck how well it's been covered. If we don't rise to meet your set goals, the test fails!