MCPcopy
hub / github.com/numpy/numpy / test_array

Method test_array

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

Source from the content-addressed store, hash-verified

81 assert_equal(s.randint(1000), 419)
82
83 def test_array(self):
84 s = random.RandomState(range(10))
85 assert_equal(s.randint(1000), 468)
86 s = random.RandomState(np.arange(10))
87 assert_equal(s.randint(1000), 468)
88 s = random.RandomState([0])
89 assert_equal(s.randint(1000), 973)
90 s = random.RandomState([4294967295])
91 assert_equal(s.randint(1000), 265)
92
93 def test_invalid_scalar(self):
94 # seed must be an unsigned 32 bit integer

Callers

nothing calls this directly

Calls 1

assert_equalFunction · 0.90

Tested by

no test coverage detected