hotspot/test/native/utilities/test_linkedlist.cpp
changeset 42900 ff634f19e82c
parent 41305 6d3c585464c0
equal deleted inserted replaced
42898:af1346a135ce 42900:ff634f19e82c
    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);