Skip to content

Commit 49a54f2

Browse files
committed
Added test
1 parent 8cbd0e1 commit 49a54f2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pymc3/tests/test_distribution_defaults.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,9 @@ def test_default_discrete_uniform():
6363
with Model():
6464
x = DiscreteUniform('x', lower=1, upper=2)
6565
assert x.init_value == 1
66+
67+
def test_discrete_uniform_negative():
68+
model = Model()
69+
with model:
70+
x = DiscreteUniform('x', lower=-10, upper=0)
71+
assert model.test_point['x'] == -5

0 commit comments

Comments
 (0)