@@ -104,6 +104,16 @@ TEST(ColumnsCase, FixedString_Append_LargeString) {
104104 EXPECT_ANY_THROW (col->Append (" this is a long string" ));
105105}
106106
107+ TEST (ColumnsCase, FixedString_Type_Size_Eq0) {
108+ const auto col = std::make_shared<ColumnFixedString>(0 );
109+ ASSERT_EQ (col->FixedSize (), col->Type ()->As <FixedStringType>()->GetSize ());
110+ }
111+
112+ TEST (ColumnsCase, FixedString_Type_Size_Eq10) {
113+ const auto col = std::make_shared<ColumnFixedString>(10 );
114+ ASSERT_EQ (col->FixedSize (), col->Type ()->As <FixedStringType>()->GetSize ());
115+ }
116+
107117TEST (ColumnsCase, StringInit) {
108118 auto values = MakeStrings ();
109119 auto col = std::make_shared<ColumnString>(values);
@@ -866,6 +876,12 @@ TEST(ColumnsCase, ColumnLowCardinalityString_WithEmptyString_3) {
866876 }
867877}
868878
879+ TEST (ColumnsCase, ColumnLowCardinalityFixedString_Type_Size_Eq) {
880+ const size_t fixed_size = 10 ;
881+ const auto col = std::make_shared<ColumnLowCardinalityT<ColumnFixedString>>(fixed_size);
882+
883+ ASSERT_EQ (fixed_size, col->GetNestedType ()->As <FixedStringType>()->GetSize ());
884+ }
869885
870886TEST (ColumnsCase, ColumnTupleT) {
871887 using TestTuple = ColumnTupleT<ColumnUInt64, ColumnString, ColumnFixedString>;
0 commit comments