mirror of
https://github.com/python/cpython.git
synced 2026-01-06 07:22:09 +00:00
Extend test coverage to include heapifying large heaps
This commit is contained in:
parent
636488043b
commit
849564f874
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ def check_invariant(self, heap):
|
|||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue