summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-04-11 17:31:26 +0200
committerSven Gothel <[email protected]>2020-04-11 17:31:26 +0200
commit61db1fb4d0a1f918929082db67a0279647986d38 (patch)
tree02d0416376cf14b138365782e69fde6f87e4dca3 /test
parent499446a98216a2de6a5c6ff8af94758cbeede5a7 (diff)
Warnings: Remove -Wextra warnings
Diffstat (limited to 'test')
-rw-r--r--test/direct_bt/test_basictypes01.cpp9
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));
+ }
}
};