quick_check.js icon indicating copy to clipboard operation
quick_check.js copied to clipboard

JavaScript Edge Cases

Open gampleman opened this issue 10 years ago • 1 comments

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.

gampleman avatar Mar 16 '15 10:03 gampleman

Added sparse arrays option in a recent commit

gampleman avatar Jan 06 '16 14:01 gampleman