quick_check.js
quick_check.js copied to clipboard
JavaScript Edge Cases
Currently most generators behave in a reasonable way - imitating the Haskell heritage of this library. However JavaScript data types have a number of weird edge case behaviours. For example Arrays can be sparse, variables can be null, types can be constructed with literals or constructors, objects can have weird prototypes, etc.
The proposal here is to create several versions of each generator, where there still will be a 'reasonable' version of a generator that will make it easy to reason about tests, but also a 'realistic' version that will with some probability generate values that exhibit these edge case behaviors.
Added sparse arrays option in a recent commit