MCPcopy
hub / github.com/numpy/numpy / test_invalid_prob

Method test_invalid_prob

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

Source from the content-addressed store, hash-verified

163 float(1))
164
165 def test_invalid_prob(self):
166 assert_raises(ValueError, random.multinomial, 100, [1.1, 0.2])
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])

Callers

nothing calls this directly

Calls 1

assert_raisesFunction · 0.90

Tested by

no test coverage detected