net/addr/ether: Add basic MAC comparison and hashing
Change-Id: I8e6ddb709726326357cad4c583fec38c18d1ea83
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/test/net/addr/ether.cpp b/test/net/addr/ether.cpp
new file mode 100644
index 0000000..73ae5eb
--- /dev/null
+++ b/test/net/addr/ether.cpp
@@ -0,0 +1,16 @@
+#include <stdplus/net/addr/ether.hpp>
+
+#include <gtest/gtest.h>
+
+namespace stdplus
+{
+
+TEST(EqualOperator, EtherAddr)
+{
+ EXPECT_EQ((EtherAddr{1}), (ether_addr{1}));
+ EXPECT_EQ((EtherAddr{}), (EtherAddr{}));
+ EXPECT_NE((EtherAddr{1}), (EtherAddr{ether_addr{}}));
+ std::hash<EtherAddr>{}(EtherAddr{});
+}
+
+} // namespace stdplus