diff --git a/tests/test_core_shiftedint.cc b/tests/test_core_shiftedint.cc index 8d976de..3f99df5 100644 --- a/tests/test_core_shiftedint.cc +++ b/tests/test_core_shiftedint.cc @@ -11,6 +11,10 @@ using namespace nba; typedef ShiftedInt TestInt; +TEST(CoreShiftedIntTest, ClassSize) { + EXPECT_EQ(sizeof(TestInt), sizeof(uint16_t)); +} + TEST(CoreShiftedIntTest, Precision_Create) { EXPECT_THROW(TestInt(1), PrecisionLossException); EXPECT_THROW(TestInt(1164032), PrecisionLossException);