Commit 5519de5b authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[3263] Update tests that allow adding RdataPtr to an RRset when class or type don't match

parent 32bd410b
......@@ -162,14 +162,22 @@ TEST_F(RRsetTest, addRdataPtr) {
TEST_F(RRsetTest, addRdataPtrMismatched) {
// Pointer version of addRdata() doesn't type check and does allow to
//add a different type of Rdata as a result.
// Type mismatch
rrset_a_empty.addRdata(createRdata(RRType::NS(), RRClass::IN(),
EXPECT_EQ(3, rrset_a_empty.getRdataCount());
EXPECT_EQ(1, rrset_a_empty.getRdataCount());
// Class mismatch
rrset_ch_txt.addRdata(createRdata(RRType::TXT(), RRClass::IN(),
"Test String"));
EXPECT_EQ(1, rrset_ch_txt.getRdataCount());
TEST_F(RRsetTest, iterator) {
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