コード例 #1
0
def test_copy_heap():
    heap = Heap(num_list)
    copy = heap.copy()
    assert (heap._vals == copy._vals)
    assert (heap is not copy)
コード例 #2
0
def test_copy_heap():
    heap = Heap(num_list)
    copy = heap.copy()
    assert(heap._vals == copy._vals)
    assert(heap is not copy)