GoogleChromeLabs / jsbi

JSBI is a pure-JavaScript implementation of the official ECMAScript BigInt proposal.
https://v8.dev/features/bigint#polyfilling-transpiling
Apache License 2.0
919 stars 68 forks source link

Generate random JSBI numbers to use in tests #94

Closed brunomacf closed 2 years ago

brunomacf commented 2 years ago

Is it possible to generate random JSBI numbers to be used in tests? I'm thinking about using something like fast-check in tests.

12wrigja commented 2 years ago

The existing generate_benchmark script does some of this: https://github.com/GoogleChromeLabs/jsbi/blob/c40371e089d1433bd8ff20b7a5be617d0561e85c/scripts/generate-benchmark.py#L162-L172

brunomacf commented 2 years ago

Nice!! Thanks a lot @12wrigja!