Skip to content

Commit

Permalink
Mock the Rng as explained in rust-random/book#64
Browse files Browse the repository at this point in the history
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
Fethbita committed Oct 5, 2024
1 parent f84772c commit f0d9c0e
Showing 1 changed file with 403 additions and 340 deletions.
Loading

0 comments on commit f0d9c0e

Please sign in to comment.