Skip to content

Releases: x-sheep/swift-property-based

0.2.2

15 Jun 18:10
Compare
Choose a tag to compare
  • Fix Year shrinker not respecting bounds
  • Add more examples to documentation

0.2.1 New generators

02 Jun 10:37
09cd267
Compare
Choose a tag to compare
  • 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

27 May 12:53
cacc873
Compare
Choose a tag to compare

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 a Gen namespace, and the Generator struct for concrete implementations. Replace your custom generators with a call to Generator.
  • 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 and frequency. These will be added in a later update.

0.1.2

15 May 11:14
Compare
Choose a tag to compare
  • Platforms without Foundation are now supported
  • Fixed seed can be entered as Base64 or as four UInt64's

0.1.1

07 May 14:58
Compare
Choose a tag to compare
  • Fixed seeds will no longer report multiple "Expected Issue" points if propertyCheck is called multiple times inside a Test.

0.1.0

06 May 14:45
Compare
Choose a tag to compare

Initial release