MCPcopy Index your code
hub / github.com/numpy/numpy / test_basic

Method test_basic

numpy/random/tests/test_randomstate.py:202–207  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200 return random_state, state
201
202 def test_basic(self):
203 random_state, state = self._create_state()
204 old = random_state.tomaxint(16)
205 random_state.set_state(state)
206 new = random_state.tomaxint(16)
207 assert_(np.all(old == new))
208
209 def test_gaussian_reset(self):
210 # Make sure the cached every-other-Gaussian is reset.

Callers

nothing calls this directly

Calls 3

_create_stateMethod · 0.95
assert_Function · 0.90
allMethod · 0.45

Tested by

no test coverage detected