Skip to content

Commit

Permalink
Check
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Dec 16, 2024
1 parent 0aa1e4f commit 6fc93c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/language/expressions/cpp/LengthOfOperatorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ TEST(LengthOfOperatorTest, writeRead)
data.strArray = VectorType<StringType>{"text1", "text2", "text3", "text4"};
data.bytesArray = VectorType<BytesType>{{0x01, 0x02}, {0x03, 0x04}};

zserio::View view(data);
zserio::View<::expressions::lengthof_operator::LengthOfFunctions> view(data);
zserio::BitSize endBitPosition = 0;
endBitPosition += zserio::detail::bitSizeOf(view.fixedArray(), endBitPosition);
endBitPosition += zserio::detail::bitSizeOf(view.numElements(), endBitPosition);
Expand All @@ -111,7 +111,7 @@ TEST(LengthOfOperatorTest, writeRead)
endBitPosition += zserio::detail::bitSizeOf(view.strArray(), endBitPosition);
endBitPosition += zserio::detail::bitSizeOf(view.bytesArray(), endBitPosition);

EXPECT_EQ(576, zserio::detail::bitSizeOf(zserio::View<LengthOfFunctions>(data), 0))
EXPECT_EQ(576, zserio::detail::bitSizeOf(zserio::View<::expressions::lengthof_operator::LengthOfFunctions>(data), 0))
<< "fixedArray[0]: " << data.fixedArray[0] << std::endl
<< "fixedArray.size: " << data.fixedArray.size() << std::endl
<< "numElements: " << static_cast<unsigned>(data.numElements) << std::endl
Expand Down

0 comments on commit 6fc93c0

Please sign in to comment.