Releases: x-sheep/swift-property-based
Releases · x-sheep/swift-property-based
1.1.0
1.0.1
1.0.0
Features:
- New Generators
oneOfandfrequency - New
optionSetgenerator with an upper limit parameter
Fixes:
- Fix shrinker writing every intermediate step to output when using Swift Testing 6.2
Breaking changes:
- Swift 6.1 support is deprecated, and will not receive the above bugfixes and features.
- Shrinking is now enabled by default on Swift 6.2 and up. Disable the "EnableShrinking" SwiftPM package trait to change this behavior.
0.2.3
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
Genstruct has been split into aGennamespace, and theGeneratorstruct 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.intinstead of just.int. - Not all functions are currently available, like
flatMapandfrequency. These will be added in a later update.