Skip to content

Commit d9c5309

Browse files
fix test for readability and variation
1 parent 75c52fc commit d9c5309

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pymc/tests/test_distributions_moments.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -618,13 +618,13 @@ def test_discrete_uniform_moment(lower, upper, size, expected):
618618
@pytest.mark.parametrize(
619619
"p, size, expected",
620620
[
621-
(np.arange(0.1, 0.4, 0.1), None, 3),
622-
(np.arange(0.1, 0.4, 0.1), 5, np.full(5, 3)),
623-
(np.full((2, 4), np.arange(0.1, 0.4, 0.1)), None, [3, 3]),
621+
(np.array([0.1, 0.3, 0.6]), None, 2),
622+
(np.array([0.6, 0.1, 0.3]), 5, np.full(5, 0)),
623+
(np.full((2, 3), np.array([0.6, 0.1, 0.3])), None, [0, 0]),
624624
(
625-
np.full((2, 4), np.arange(0.1, 0.4, 0.1)),
625+
np.full((2, 3), np.array([0.1, 0.3, 0.6])),
626626
(3, 2),
627-
np.full((3, 2), [3, 3]),
627+
np.full((3, 2), [2, 2]),
628628
),
629629
],
630630
)

0 commit comments

Comments
 (0)