MCPcopy
hub / github.com/keon/algorithms / setUp

Method setUp

tests/test_heap.py:11–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

9 """
10
11 def setUp(self):
12 self.min_heap = BinaryHeap()
13 self.min_heap.insert(4)
14 self.min_heap.insert(50)
15 self.min_heap.insert(7)
16 self.min_heap.insert(55)
17 self.min_heap.insert(90)
18 self.min_heap.insert(87)
19
20 def test_insert(self):
21 # Before insert 2: [0, 4, 50, 7, 55, 90, 87]

Callers

nothing calls this directly

Calls 2

BinaryHeapClass · 0.90
insertMethod · 0.45

Tested by

no test coverage detected