fixed right padding issue for several output members
[senf.git] / senf / Socket / Protocols / Raw / EUI64.test.cc
index ae431d1..9d12430 100644 (file)
@@ -34,7 +34,7 @@
 #include <boost/test/test_tools.hpp>
 
 #define prefix_
-///////////////////////////////cc.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 
 SENF_AUTO_UNIT_TEST(eui64)
 {
@@ -85,7 +85,17 @@ SENF_AUTO_UNIT_TEST(eui64)
     }
 }
 
-///////////////////////////////cc.e////////////////////////////////////////
+SENF_AUTO_UNIT_TEST(eui64_fillRight)
+{
+    std::string eui64Str ("01:02:03:ff-fe:04:05:06");
+    senf::EUI64 eui64 (senf::EUI64::from_string( eui64Str));
+
+    std::stringstream ss;
+    ss << std::left << eui64;
+    BOOST_CHECK_EQUAL( ss.str(), eui64Str);
+}
+
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
 #undef prefix_
 
 \f