Skip to content

Releases: x-sheep/swift-property-based

1.0.1

26 Sep 16:24
695120f
Compare
Choose a tag to compare
  • Fix Frequency weight being affected by filters
  • Add unavailable functions for Frequency gen for compiler below 6.2

1.0.0

18 Sep 07:59
1281c48
Compare
Choose a tag to compare

Features:

  • New Generators oneOf and frequency
  • New optionSet generator 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

19 Aug 12:26
Compare
Choose a tag to compare
  • Fix Optional generator comparing the input rate incorrectly
  • Fix availability of Float16 type
  • Fix compile warnings when using Swift 6.2 beta

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