ip: avoid temporary in test
This commit is contained in:
parent
829bdc2767
commit
950c5ba0d4
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user