예제 #1
0
def test_size_three_elements():
    linked_list = LinkedList()
    # Insert three elements
    for _ in range(3):
        linked_list.insert(431)
    assert linked_list.size() == 3
예제 #2
0
def test_size_one_element():
    linked_list = LinkedList()
    linked_list.insert(431)
    assert linked_list.size() == 1