Hi! 👋
Was thinking of adding a built-in generator of the System.Range struct, as this would expand the default generator functionality.
Am currently using this:
let range = gen {
let! min = Gen.choose (0, Int32.MaxValue)
let! max = Gen.choose (min, Int32.MaxValue)
return Range (min, max) }
To make sure that the minimum is always lower than the maximum. But, with some additional options, one could include Range.StartAt and Range.EndAt too.
Just a suggestion when using the awesome FsCheck library 😉 .
Hi! 👋
Was thinking of adding a built-in generator of the
System.Rangestruct, as this would expand the default generator functionality.Am currently using this:
To make sure that the minimum is always lower than the maximum. But, with some additional options, one could include
Range.StartAtandRange.EndAttoo.Just a suggestion when using the awesome FsCheck library 😉 .