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

Method test_laplace_0

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

Source from the content-addressed store, hash-verified

922 assert_array_almost_equal(actual, desired, decimal=15)
923
924 def test_laplace_0(self):
925 assert_equal(random.laplace(scale=0), 0)
926 assert_raises(ValueError, random.laplace, scale=-0.)
927
928 def test_logistic(self):
929 random.seed(self.seed)

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
assert_raisesFunction · 0.90
laplaceMethod · 0.80

Tested by

no test coverage detected