diff --git a/test/language/expressions/cpp/LengthOfOperatorTest.cpp b/test/language/expressions/cpp/LengthOfOperatorTest.cpp index 6173ee4..04d6538 100644 --- a/test/language/expressions/cpp/LengthOfOperatorTest.cpp +++ b/test/language/expressions/cpp/LengthOfOperatorTest.cpp @@ -100,8 +100,21 @@ TEST(LengthOfOperatorTest, writeRead) data.strArray = VectorType{"text1", "text2", "text3", "text4"}; data.bytesArray = VectorType{{0x01, 0x02}, {0x03, 0x04}}; - EXPECT_EQ(576, zserio::detail::bitSizeOf(zserio::View(data))) - << "literalLengthField: " << data.literalLengthField; + EXPECT_EQ(575, zserio::detail::bitSizeOf(zserio::View(data))) + << "fixedArray[0]: " << data.fixedArray[0] << std::endl + << "fixedArray.size: " << data.fixedArray.size() << std::endl + << "numElements: " << static_cast(data.numElements) << std::endl + << "variableArray[0]: " << static_cast(data.variableArray[0]) << std::endl + << "variableArray.size: " << data.variableArray.size() << std::endl + << "strField: " << data.strField << std::endl + << "literalLengthField: " << data.literalLengthField << std::endl + << "bytesField[0]: " << data.bytesField[0] << std::endl + << "bytesField.size: " << data.bytesField.size() << std::endl + << "strArray[0]: " << data.strArray[0] << std::endl + << "strArray.size: " << data.strArray.size() << std::endl + << "bytesArray[0][0]: " << static_cast(data.bytesArray[0][0]) << std::endl + << "bytesArray[0].size: " << data.bytesArray[0].size() << std::endl + << "bytesArray.size: " << data.bytesArray.size(); test_utils::writeReadTest(data); }