Closed emoon closed 2 years ago
Good idea - you don't happen to know how best to do this? I could seed rand()
or maybe a wang hash, but I'm not sure how best to guarantee that each test case will be visited?
Yeah, so there is thing thing https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle I have never implemented it myself, but it should (tm) be pretty straightforward.
Something that would be useful is to have tests running in a (optional) non-deterministic order. This allows catch a bunch of bugs such as: