ip: avoid temporary in test

This commit is contained in:
Danny Robson 2016-05-12 18:00:12 +10:00
parent 829bdc2767
commit 950c5ba0d4

View File

@ -24,8 +24,7 @@ test_good (util::TAP::logger &tap)
};
for (const auto &i: TESTS) {
ipv4::ip parsed (ipv4::ip::parse (i.str));
tap.expect_eq (parsed, i.ip, i.msg);
tap.expect_eq (ipv4::ip::parse (i.str), i.ip, i.msg);
}
}