Extend test coverage to include heapifying large heaps

This commit is contained in:
Raymond Hettinger 2015-05-12 21:42:40 -07:00
parent 636488043b
commit 849564f874
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class TestHeap:
self.assertTrue(heap[parentpos] <= item)
def test_heapify(self):
for size in range(30):
for size in list(range(30)) + [20000]:
heap = [random.random() for dummy in range(size)]
self.module.heapify(heap)
self.check_invariant(heap)