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

Method test_repr

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

Source from the content-addressed store, hash-verified

309 assert_equal(uniforms.dtype, np.float32)
310
311 def test_repr(self):
312 rs = Generator(self.bit_generator(*self.data1['seed']))
313 assert 'Generator' in repr(rs)
314 assert f'{id(rs):#x}'.upper().replace('X', 'x') in repr(rs)
315
316 def test_str(self):
317 rs = Generator(self.bit_generator(*self.data1['seed']))

Callers

nothing calls this directly

Calls 2

replaceMethod · 0.80
upperMethod · 0.80

Tested by

no test coverage detected