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

Method test_array

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

Source from the content-addressed store, hash-verified

77 assert_equal(s.randint(1000), 419)
78
79 def test_array(self):
80 s = random.RandomState(range(10))
81 assert_equal(s.randint(1000), 468)
82 s = random.RandomState(np.arange(10))
83 assert_equal(s.randint(1000), 468)
84 s = random.RandomState([0])
85 assert_equal(s.randint(1000), 973)
86 s = random.RandomState([4294967295])
87 assert_equal(s.randint(1000), 265)
88
89 def test_invalid_scalar(self):
90 # 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