Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

Releases: jcornaz/kwik

0.1.0-alpha.4

10 Jun 11:07
Compare
Choose a tag to compare
0.1.0-alpha.4 Pre-release
Pre-release

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 generators.
    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

0.1.0-alpha.3

08 Jun 09:34
Compare
Choose a tag to compare
0.1.0-alpha.3 Pre-release
Pre-release

Added

  • Generator.combine as a style alternative to combine generators

Changed

  • (Breaking) zip operator renamed to combineWith for better clarity and discoverability

0.1.0-alpha.2

19 May 08:13
Compare
Choose a tag to compare
0.1.0-alpha.2 Pre-release
Pre-release

Added

  • ints, longs, floats, doubles and boolean generators
  • map operator to transform an existing generator
  • Generator.of() to create a generate from a finite set of samples
  • enum to create a generator from an enum
  • strings to create a String generator
  • default Capable of inferring what generator to return for a given type.
  • lists, sets and maps generators

Changed

  • Default generator arguments added in forAll and checkForAll.

Removed

  • checkForAll functions as it was unsafe, allowing to forget assertions without compile-time error.

0.1.0-alpha.1

18 May 08:00
Compare
Choose a tag to compare
0.1.0-alpha.1 Pre-release
Pre-release

Added

  • Generator interface for generating random values
  • randomSequence helper to easily create a random (yet predictable) sequence of value
  • forAll and checkForAll function to assess a property of the system under test.
  • withSample and withNull to inject constants values to be always tested
  • zip operator to combine two given generators