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 theGenerator
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
anduntil
offloats
anddoubles
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
andcombineWith
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 thewithSamples
andwithNull
operators