Commit 64bc0886 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2522] revised "copy" test for SSHFP: make sure to use assignment, not copy.

parent 8ed9ddfe
......@@ -152,12 +152,14 @@ TEST_F(Rdata_SSHFP_Test, badText) {
checkFromText_LexerError("2 -1 123456789abcdef67890123456789abcdef67890");
TEST_F(Rdata_SSHFP_Test, copy) {
const generic::SSHFP rdata_sshfp2(rdata_sshfp);
TEST_F(Rdata_SSHFP_Test, copyAndAssign) {
// Copy construct
generic::SSHFP rdata_sshfp2(rdata_sshfp);
const generic::SSHFP rdata_sshfp3 = rdata_sshfp;
// Assignment, mainly to confirm it doesn't cause disruption.
rdata_sshfp2 = rdata_sshfp;
TEST_F(Rdata_SSHFP_Test, createFromWire) {
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