Skip to content

Commit d680f6c

Browse files
committed
Adding min_value for s = 0
1 parent 4dc44c1 commit d680f6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

axelrod/tests/property.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def games(draw, prisoners_dilemma=True, max_value=100):
363363

364364
if prisoners_dilemma:
365365
s_upper_bound = max_value - 4 # Ensures there is enough room
366-
s = draw(integers(max_value=s_upper_bound))
366+
s = draw(integers(min_value=0, max_value=s_upper_bound))
367367

368368
t_lower_bound = s + 3 # Ensures there is enough room
369369
t = draw(integers(min_value=t_lower_bound, max_value=max_value))

0 commit comments

Comments
 (0)