Commit 6eef389c authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

fixed test regression.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac397@3612 e5f2f494-b856-4b98-b285-d166d9295462
parent 30c9e302
......@@ -146,13 +146,13 @@ TEST_F(RBTreeTest, findName) {
// partial match
EXPECT_EQ(RBTree<int>::PARTIALMATCH, rbtree.find(Name("m.b"), &crbtnode));
EXPECT_EQ(Name("b"), rbtnode->getName());
EXPECT_EQ(Name("b"), crbtnode->getName());
}
TEST_F(RBTreeTest, successor) {
// traverse the trees
EXPECT_EQ(RBTree<int>::EXACTMATCH, rbtree.find(Name("a"), &crbtnode));
const RBNode<int> *successor_node = rbtnode->successor();
const RBNode<int> *successor_node = crbtnode->successor();
EXPECT_EQ(Name("b"), successor_node->getName());
successor_node = successor_node->successor();
EXPECT_EQ(Name("c"), successor_node->getName());
......@@ -163,16 +163,16 @@ TEST_F(RBTreeTest, successor) {
successor_node = successor_node->successor();
EXPECT_EQ(RBTree<int>::EXACTMATCH, rbtree.find(Name("x.d.e.f"), &crbtnode));
EXPECT_EQ(Name("x"), rbtnode->getName());
successor_node = rbtnode->successor();
EXPECT_EQ(Name("x"), crbtnode->getName());
successor_node = crbtnode->successor();
EXPECT_EQ(Name("w.y"), successor_node->getName());
successor_node = successor_node->successor();
EXPECT_EQ(Name("z"), successor_node->getName());
EXPECT_EQ(RBTree<int>::EXACTMATCH, rbtree.find(Name("o.w.y.d.e.f"),
&crbtnode));
EXPECT_EQ(Name("o"), rbtnode->getName());
successor_node = rbtnode->successor();
EXPECT_EQ(Name("o"), crbtnode->getName());
successor_node = crbtnode->successor();
EXPECT_EQ(Name("p"), successor_node->getName());
successor_node = successor_node->successor();
EXPECT_EQ(Name("q"), successor_node->getName());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment