@@ -74,16 +74,16 @@ TEST(TransformFromStringTest, PositiveCases) {
7474 std::optional<int32_t > param;
7575 };
7676
77- constexpr std::array <Case, 8 > cases{
78- {{. str = " identity" , . type = TransformType::kIdentity , . param = std::nullopt },
79- {. str = " year" , . type = TransformType::kYear , . param = std::nullopt },
80- {. str = " month" , . type = TransformType::kMonth , . param = std::nullopt },
81- {. str = " day" , . type = TransformType::kDay , . param = std::nullopt },
82- {. str = " hour" , . type = TransformType::kHour , . param = std::nullopt },
83- {. str = " void" , . type = TransformType::kVoid , . param = std::nullopt },
84- {. str = " bucket[16]" , . type = TransformType::kBucket , . param = 16 },
85- {. str = " truncate[32]" , . type = TransformType::kTruncate , . param = 32 }}};
86-
77+ const std::vector <Case> cases = {
78+ {" identity" , TransformType::kIdentity , std::nullopt },
79+ { " year" , TransformType::kYear , std::nullopt },
80+ { " month" , TransformType::kMonth , std::nullopt },
81+ { " day" , TransformType::kDay , std::nullopt },
82+ { " hour" , TransformType::kHour , std::nullopt },
83+ { " void" , TransformType::kVoid , std::nullopt },
84+ { " bucket[16]" , TransformType::kBucket , 16 },
85+ { " truncate[32]" , TransformType::kTruncate , 32 },
86+ };
8787 for (const auto & c : cases) {
8888 auto result = TransformFromString (c.str );
8989 ASSERT_TRUE (result.has_value ()) << " Failed to parse: " << c.str ;
0 commit comments