Releases: x-sheep/swift-property-based
Releases · x-sheep/swift-property-based
0.2.2
0.2.1 New generators
- Add generator for Date, Date with time, and Year
- Add generator for custom OptionSet types
- Fix failure messages showing inputs before map/filter
0.2.0 - Shrinking
Shrinking functionality has been added. It has been disabled by default, but can be enabled by adding the trait .shrinking
to a test or test suite.
A fork of swift-gen
has been added, which is no longer source-compatible with the original swift-gen
.
- The
Gen
struct has been split into aGen
namespace, and theGenerator
struct for concrete implementations. Replace your custom generators with a call toGenerator
. - All calls to a built-in generator must be fully qualified as e.g.
Gen.int
instead of just.int
. - Not all functions are currently available, like
flatMap
andfrequency
. These will be added in a later update.