MCPcopy
hub / github.com/numpy/numpy / test_invalid_n

Method test_invalid_n

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

Source from the content-addressed store, hash-verified

167 assert_raises(ValueError, random.multinomial, 100, [-.1, 0.9])
168
169 def test_invalid_n(self):
170 assert_raises(ValueError, random.multinomial, -1, [0.8, 0.2])
171
172 def test_p_non_contiguous(self):
173 p = np.arange(15.)

Callers

nothing calls this directly

Calls 1

assert_raisesFunction · 0.90

Tested by

no test coverage detected