diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/direct_bt/test_basictypes01.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/direct_bt/test_basictypes01.cpp b/test/direct_bt/test_basictypes01.cpp index e541c4ac..92e45c84 100644 --- a/test/direct_bt/test_basictypes01.cpp +++ b/test/direct_bt/test_basictypes01.cpp @@ -6,6 +6,7 @@ #include <cppunit.h> #include <direct_bt/BasicTypes.hpp> +#include <direct_bt/BTAddress.hpp> using namespace direct_bt; @@ -57,6 +58,14 @@ class Cppunit_tests : public Cppunit { test_uint64_t("uint64_t thousand", 1000, 5, "1,000"); test_uint64_t("UINT64_MAX", UINT64_MAX, 26, "18,446,744,073,709,551,615"); } + { + EUI48 mac01; + PRINTM("EUI48 size: whole0 "+std::to_string(sizeof(EUI48))); + PRINTM("EUI48 size: whole1 "+std::to_string(sizeof(mac01))); + PRINTM("EUI48 size: data1 "+std::to_string(sizeof(mac01.b))); + CHECKM("EUI48 struct and data size not matching", sizeof(EUI48), sizeof(mac01)); + CHECKM("EUI48 struct and data size not matching", sizeof(mac01), sizeof(mac01.b)); + } } }; |