From 6fc93c0d120d73b1d43120bece4a75b0075867c1 Mon Sep 17 00:00:00 2001 From: Miki Rozloznik Date: Mon, 16 Dec 2024 11:32:13 +0100 Subject: [PATCH] Check --- test/language/expressions/cpp/LengthOfOperatorTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/language/expressions/cpp/LengthOfOperatorTest.cpp b/test/language/expressions/cpp/LengthOfOperatorTest.cpp index 53c8ae2..dbe450c 100644 --- a/test/language/expressions/cpp/LengthOfOperatorTest.cpp +++ b/test/language/expressions/cpp/LengthOfOperatorTest.cpp @@ -100,7 +100,7 @@ TEST(LengthOfOperatorTest, writeRead) data.strArray = VectorType{"text1", "text2", "text3", "text4"}; data.bytesArray = VectorType{{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); @@ -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(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(data.numElements) << std::endl