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

Method test_init

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

Source from the content-addressed store, hash-verified

114 self.rg.bit_generator.state = self.initial_state
115
116 def test_init(self):
117 rg = Generator(self.bit_generator())
118 state = rg.bit_generator.state
119 rg.standard_normal(1)
120 rg.standard_normal(1)
121 rg.bit_generator.state = state
122 new_state = rg.bit_generator.state
123 assert_(comp_state(state, new_state))
124
125 def test_advance(self):
126 state = self.rg.bit_generator.state

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
comp_stateFunction · 0.85

Tested by

no test coverage detected