News for hackers. Stuff that matters.
Re:Property-Based Testing in Rust with Arbitrary by WirelessGigabit on Thursday November 10, 2022 @11:48PM (#33557404)
I had a really hard time getting past the bad construction of the struct. Why not make an enum variant where a bike just doesn't have a fuel property. Makes things a lot easier.
Re:Property-Based Testing in Rust with Arbitrary by alpaca128 on Friday November 11, 2022 @04:25AM (#33558673)
There is an enum with a Bicycle variant. And if you read the text you see why the struct version exists too.