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

Method test_init

numpy/random/tests/test_smoke.py:112–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

110 return RNGData(bit_generator, advance, seed, rg, seed_vector_bits)
111
112 def test_init(self):
113 data = self._create_rng()
114 data.rg = Generator(data.bit_generator())
115 state = data.rg.bit_generator.state
116 data.rg.standard_normal(1)
117 data.rg.standard_normal(1)
118 data.rg.bit_generator.state = state
119 new_state = data.rg.bit_generator.state
120 assert_(comp_state(state, new_state))
121
122 def test_advance(self):
123 data = self._create_rng()

Callers

nothing calls this directly

Calls 3

_create_rngMethod · 0.95
assert_Function · 0.90
comp_stateFunction · 0.85

Tested by

no test coverage detected