def test_find_all_no_element(self): n1 = Node(1) n2 = Node(3) n3 = Node(3) s_list = LinkedList() s_list.add_in_tail(n1) s_list.add_in_tail(n2) s_list.add_in_tail(n3) data = s_list.find_all(2) res = [] self.assertEqual(data, res)
def test_find_all_full(self): n1 = Node(1) n2 = Node(3) n3 = Node(3) s_list = LinkedList() s_list.add_in_tail(n1) s_list.add_in_tail(n2) s_list.add_in_tail(n3) data = s_list.find_all(3) res = [n2, n3] self.assertEqual(data, res)
def test_find_all_void(self): s_list = LinkedList() data = s_list.find_all(3) res = [] self.assertEqual(data, res)