Commit 3fe2c347 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

added a test case highlighting using the default parameter for

findRRset(type/class) isn't really a good idea.
the test would crash, so commented it out for now.

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent 450ec190
......@@ -110,6 +110,15 @@ TEST_F(RRsetListTest, randomAccess) {
p = list[RRType::SOA()];
EXPECT_EQ(p->getType(), RRType::SOA());
// What should this be?
p = RRsetPtr(new RRset(Name(""), RRClass::CH(),
RRType::DNAME(), RRTTL(3600)));
p = list[RRType::DNAME()];
//This will crash, but it's counter intuitive, isn't it? We added a DNAME
//RRset and fetched a DNAME RRset in the list. Why can't it succeed?
//EXPECT_EQ(p->getType(), RRType::DNAME());
TEST_F(RRsetListTest, findRRset) {
......@@ -165,4 +174,3 @@ TEST_F(RRsetListTest, iterate) {
Supports Markdown
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