コード例 #1
0
 def test_link_list(self):
     lst = LinkList()
     a = (3, 35, -5, 7, 10)
     lst.create(a)
     lst.head.print()
     p = lst.head
     for b in a:
         assert b == p.val
         p = p.next
     new = 55
     lst.insert(1, new)
     p = lst.head
     p = p.next
     assert new == p.val