dubzzz / fast-check

Property based testing framework for JavaScript (like QuickCheck) written in TypeScript
https://fast-check.dev/
MIT License
4.25k stars 176 forks source link

Create size-aware arbitraries for int #5098

Open dubzzz opened 1 month ago

dubzzz commented 1 month ago

🚀 Feature Request

Should probably just be a sizeAware flag on nat/integer. Same could be done for floating points but we should probably prevent both very big and very small.

dubzzz commented 1 month ago

Or possibly an unconditional support for size. Maybe to be extended to maxSafe too.

In a nutshell, not something to do in a rush. Maybe worth thinking of it in v3 for v4.