kwik v0.1.0-alpha.4 Release Notes

Release Date: 2019-06-10 // almost 5 years ago
  • โž• Added

    • filter operator for generators
    • (Breaking) samples property in the Generator interface to improve management of the value samples (edge-cases)
    • forAll non-inline function, allowing to hide implementation details.
    • ๐Ÿ”€ + operator for generator, allowing to merge 2 operators. Example: nonZeroInts() = ints(max = -1) + ints(min = 1)

    ๐Ÿ”„ Changed

    • (Breaking) Renamed arguments from and until of floats and doubles generators for more consistency with the int and long generators
    • (Breaking) Make the lambda of forAll crossinline, to allow usage of a non-inline function and hide implementation details.
    • Now the size probability for strings a collections generators is similar for all sizes. Instead, they have empty and singletons instances as samples
    • combine and combineWith now start by a combination of the source generators and will randomly add samples in the random generations.
    • Prevent error when passing a big min size/length without a max size/length for collection and strings generators

    โœ‚ Removed

    • (Breaking) ratio argument from the withSamples and withNull operators