Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mock the Rng as explained in rust-random/book#64
The problem with this approach is that, different test functions can't use different states of the Rng. Also since the returned values are hardcoded in the MockRng, they are far away from the tests, should find another approach to be able to set the values Rng must return in the test functions themselves
- Loading branch information