(generator_class)
| 74 | |
| 75 | |
| 76 | def test_generator_consistent_names(generator_class): |
| 77 | state1 = generator_class(42) |
| 78 | state2 = generator_class(42) |
| 79 | assert sorted(state1.normal(size=(100, 100), chunks=(10, 10)).dask) == sorted( |
| 80 | state2.normal(size=(100, 100), chunks=(10, 10)).dask |
| 81 | ) |
| 82 | assert sorted( |
| 83 | state1.normal(size=100, loc=4.5, scale=5.0, chunks=10).dask |
| 84 | ) == sorted(state2.normal(size=100, loc=4.5, scale=5.0, chunks=10).dask) |
| 85 | |
| 86 | |
| 87 | def test_random(generator_class): |
nothing calls this directly
no test coverage detected
searching dependent graphs…