Calling the RNG as a function returns random integers, in a fixed sequence depending on the seed.
()
| 15 | |
| 16 | |
| 17 | def test_call(): |
| 18 | """ |
| 19 | Calling the RNG as a function returns random integers, in a fixed sequence |
| 20 | depending on the seed. |
| 21 | """ |
| 22 | rng = RandomNumberGenerator(seed=42) |
| 23 | |
| 24 | assert_equal(rng(), 2386648076) |
| 25 | assert_equal(rng(), 1236469084) |
| 26 | |
| 27 | rng = RandomNumberGenerator(seed=43) |
| 28 | |
| 29 | assert_equal(rng(), 2386648077) |
| 30 | assert_equal(rng(), 1236469085) |
| 31 | |
| 32 | |
| 33 | def test_randint(): |
nothing calls this directly
no test coverage detected