test initializing UdpDestination

This commit is contained in:
Erik Frojdh 2021-09-07 15:35:23 +02:00
parent ba52bfb65e
commit cd0161f90b

View File

@ -113,10 +113,17 @@ TEST_CASE("Copy construct a MacAddr") {
}
TEST_CASE("udp dst struct"){
TEST_CASE("udp dst struct basic properties"){
static_assert(sizeof(UdpDestination) == 36);
UdpDestination dst{};
REQUIRE(dst.entry == 0);
REQUIRE(dst.port == 0);
REQUIRE(dst.port2 == 0);
REQUIRE(dst.ip == 0);
REQUIRE(dst.ip2 == 0);
REQUIRE(dst.mac == 0);
REQUIRE(dst.mac2 == 0);
}