Skip to content

Commit

Permalink
Don't split very small lists down the middle because this leads to du…
Browse files Browse the repository at this point in the history
…plicates
  • Loading branch information
DRMacIver committed Mar 21, 2015
1 parent 1ad6631 commit d4ee34a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hypothesis/searchstrategy/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def simplify(self, x):

yield ()

if len(x) > 1:
if len(x) > 3:
mid = len(x) // 2
yield x[:mid]
yield x[mid:]
Expand Down

0 comments on commit d4ee34a

Please sign in to comment.