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

Method test_set_key

numpy/random/tests/test_direct.py:369–374  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

367 cls.invalid_init_values = [(1, None, 1), (-1,), (None, None, 2 ** 257 + 1)]
368
369 def test_set_key(self):
370 bit_generator = self.bit_generator(*self.data1['seed'])
371 state = bit_generator.state
372 keyed = self.bit_generator(counter=state['state']['counter'],
373 key=state['state']['key'])
374 assert_state_equal(bit_generator.state, keyed.state)
375
376
377class TestPCG64(Base):

Callers

nothing calls this directly

Calls 1

assert_state_equalFunction · 0.85

Tested by

no test coverage detected