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

Method test_invalid_n

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

Source from the content-addressed store, hash-verified

163 assert_raises(ValueError, random.multinomial, 100, [-.1, 0.9])
164
165 def test_invalid_n(self):
166 assert_raises(ValueError, random.multinomial, -1, [0.8, 0.2])
167
168 def test_p_non_contiguous(self):
169 p = np.arange(15.)

Callers

nothing calls this directly

Calls 1

assert_raisesFunction · 0.90

Tested by

no test coverage detected