equal
deleted
inserted
replaced
72 Integer* i = ll.find(six); |
72 Integer* i = ll.find(six); |
73 ASSERT_TRUE(i != NULL) << "Should find it"; |
73 ASSERT_TRUE(i != NULL) << "Should find it"; |
74 ASSERT_EQ(six.value(), i->value()) << "Should be 6"; |
74 ASSERT_EQ(six.value(), i->value()) << "Should be 6"; |
75 |
75 |
76 i = ll.find(three); |
76 i = ll.find(three); |
77 ASSERT_EQ(NULL, i) << "Not in the list"; |
77 ASSERT_TRUE(i == NULL) << "Not in the list"; |
78 |
78 |
79 LinkedListNode<Integer>* node = ll.find_node(six); |
79 LinkedListNode<Integer>* node = ll.find_node(six); |
80 ASSERT_TRUE(node != NULL) << "6 is in the list"; |
80 ASSERT_TRUE(node != NULL) << "6 is in the list"; |
81 |
81 |
82 ll.insert_after(three, node); |
82 ll.insert_after(three, node); |