diff --git a/cpp-ch/local-engine/tests/gtest_spark_row.cpp b/cpp-ch/local-engine/tests/gtest_spark_row.cpp index 0350bb16c705..963f7736858f 100644 --- a/cpp-ch/local-engine/tests/gtest_spark_row.cpp +++ b/cpp-ch/local-engine/tests/gtest_spark_row.cpp @@ -136,7 +136,7 @@ TEST(SparkRow, GetArrayElementSize) {std::make_shared(), 4}, {std::make_shared(), 4}, {std::make_shared(), 4}, - {std::make_shared(9, 4), 4}, + {std::make_shared(9, 4), 8}, {std::make_shared(), 8}, {std::make_shared(), 8}, {std::make_shared(), 8}, @@ -152,11 +152,11 @@ TEST(SparkRow, GetArrayElementSize) for (const auto & [type, size] : type_to_size) { - EXPECT_TRUE(BackingDataLengthCalculator::getArrayElementSize(type) == size); + EXPECT_EQ(size, BackingDataLengthCalculator::getArrayElementSize(type)); if (type->canBeInsideNullable()) { const auto type_with_nullable = std::make_shared(type); - EXPECT_TRUE(BackingDataLengthCalculator::getArrayElementSize(type_with_nullable) == size); + EXPECT_EQ(size, BackingDataLengthCalculator::getArrayElementSize(type_with_nullable)); } } }