Commit 25e34715 authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2124] Add more tests (check >255)

parent 63c345f5
......@@ -76,6 +76,12 @@ TEST_F(Rdata_SSHFP_Test, algorithmTypes) {
InvalidRdataText);
EXPECT_THROW(const generic::SSHFP rdata_sshfp("1 0 12ab"),
InvalidRdataText);
// > 255 would be broken
EXPECT_THROW(const generic::SSHFP rdata_sshfp("256 1 12ab"),
InvalidRdataText);
EXPECT_THROW(const generic::SSHFP rdata_sshfp("2 256 12ab"),
InvalidRdataText);
}
TEST_F(Rdata_SSHFP_Test, badText) {
......
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