You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Quickcheck generates integer values in a small range around zero ([-100, 100]) (cf BurntSushi/quickcheck#119). These values are not enough to tests all the branches of some intrinsics implementation. We need better control over the generated values; here's are some possible solutions of the top of my head:
Synthesize integer values from two halves. That's is use (u32, u32) as quickcheck argument and then use u64::from_parts(some_u32, another_u32) in the actual test.
Create a newtype, e.g. U64(u64), and implement the Arbitrary trait for it, but have the implementation generate values in the [MIN, MAX] range.
The text was updated successfully, but these errors were encountered:
Quickcheck generates integer values in a small range around zero (
[-100, 100]
) (cf BurntSushi/quickcheck#119). These values are not enough to tests all the branches of some intrinsics implementation. We need better control over the generated values; here's are some possible solutions of the top of my head:(u32, u32)
as quickcheck argument and then useu64::from_parts(some_u32, another_u32)
in the actual test.U64(u64)
, and implement theArbitrary
trait for it, but have the implementation generate values in the[MIN, MAX]
range.The text was updated successfully, but these errors were encountered: