| William A. Kennington III | b25086a | 2023-01-09 18:53:29 -0800 | [diff] [blame] | 1 | #include <stdplus/net/addr/ether.hpp> |
| 2 | |||||
| 3 | #include <gtest/gtest.h> | ||||
| 4 | |||||
| 5 | namespace stdplus | ||||
| 6 | { | ||||
| 7 | |||||
| 8 | TEST(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 | ||||