Commit 83ca9a47 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2534] Update CAA unittest to match change in string token scanning behavior

parent cdcedf7f
......@@ -127,9 +127,10 @@ TEST_F(Rdata_CAA_Test, fields) {
EXPECT_THROW(const generic::CAA rdata_caa2("256 issue \"\""),
// Missing tag actually passes because it parses the value as tag
// and assumes that the value is empty instead.
EXPECT_NO_THROW(const generic::CAA rdata_caa2("0 \"\""));
// Missing tag causes the value to be parsed as the tag field. As
// the tag field does not allow quoted strings, this throws.
EXPECT_THROW(const generic::CAA rdata_caa2("0 \"\""),
// Tag is too long
const std::string tag(256, 'a');
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