MCPcopy Create free account
hub / github.com/numpy/numpy / test_basic

Method test_basic

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

Source from the content-addressed store, hash-verified

194 self.state = self.random_state.get_state()
195
196 def test_basic(self):
197 old = self.random_state.tomaxint(16)
198 self.random_state.set_state(self.state)
199 new = self.random_state.tomaxint(16)
200 assert_(np.all(old == new))
201
202 def test_gaussian_reset(self):
203 # Make sure the cached every-other-Gaussian is reset.

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
allMethod · 0.45

Tested by

no test coverage detected