diff --git a/ut/columns_ut.cpp b/ut/columns_ut.cpp index aaad5f26..439c5d92 100644 --- a/ut/columns_ut.cpp +++ b/ut/columns_ut.cpp @@ -104,6 +104,16 @@ TEST(ColumnsCase, FixedString_Append_LargeString) { EXPECT_ANY_THROW(col->Append("this is a long string")); } +TEST(ColumnsCase, FixedString_Type_Size_Eq0) { + const auto col = std::make_shared(0); + ASSERT_EQ(col->FixedSize(), col->Type()->As()->GetSize()); +} + +TEST(ColumnsCase, FixedString_Type_Size_Eq10) { + const auto col = std::make_shared(10); + ASSERT_EQ(col->FixedSize(), col->Type()->As()->GetSize()); +} + TEST(ColumnsCase, StringInit) { auto values = MakeStrings(); auto col = std::make_shared(values); @@ -866,6 +876,12 @@ TEST(ColumnsCase, ColumnLowCardinalityString_WithEmptyString_3) { } } +TEST(ColumnsCase, ColumnLowCardinalityFixedString_Type_Size_Eq) { + const auto fixed_size = 10; + const auto col = std::make_shared>(fixed_size); + + ASSERT_EQ(fixed_size, col->GetNestedType()->As()->GetSize()); +} TEST(ColumnsCase, ColumnTupleT) { using TestTuple = ColumnTupleT;