BurntSushi / quickcheck

Automated property based testing for Rust (with shrinking).
The Unlicense
2.4k stars 149 forks source link

Use u64 instead of usize in QuickCheck::tests and similar #182

Closed Dushistov closed 6 years ago

Dushistov commented 7 years ago

At now QuickCheck::tests and QuickCheck::max_tests uses usize type for arguments. Size of usize depend on platform. So if you write test on 64 bit platform and after that run test on 32bit platform you will got problems, if you pass more 2^32 iteratations to this functions.

It would be good to use u64 for iteration count, so tests will be the same on all platforms.