blob: 73ae5eb0aad2a7c6d4f632f73a211c95e65e9b68 [file] [log] [blame]
William A. Kennington IIIb25086a2023-01-09 18:53:29 -08001#include <stdplus/net/addr/ether.hpp>
2
3#include <gtest/gtest.h>
4
5namespace stdplus
6{
7
8TEST(EqualOperator, EtherAddr)
9{
10 EXPECT_EQ((EtherAddr{1}), (ether_addr{1}));
11 EXPECT_EQ((EtherAddr{}), (EtherAddr{}));
12 EXPECT_NE((EtherAddr{1}), (EtherAddr{ether_addr{}}));
13 std::hash<EtherAddr>{}(EtherAddr{});
14}
15
16} // namespace stdplus