@@ -140,13 +140,16 @@ TYPED_TEST(TestNumericSumKernel, SimpleSum) {
140
140
ValidateSum<TypeParam>(&this ->ctx_ , " [0, 1, 2, 3, 4, 5]" ,
141
141
Datum (std::make_shared<ScalarType>(static_cast <T>(5 * 6 / 2 ))));
142
142
143
- ValidateSum<TypeParam>(&this ->ctx_ , {" [0, 1, 2, 3, 4, 5]" },
143
+ std::vector<std::string> json{" [0, 1, 2, 3, 4, 5]" };
144
+ ValidateSum<TypeParam>(&this ->ctx_ , json,
144
145
Datum (std::make_shared<ScalarType>(static_cast <T>(5 * 6 / 2 ))));
145
146
146
- ValidateSum<TypeParam>(&this ->ctx_ , {" [0, 1, 2]" , " [3, 4, 5]" },
147
+ json = {" [0, 1, 2]" , " [3, 4, 5]" };
148
+ ValidateSum<TypeParam>(&this ->ctx_ , json,
147
149
Datum (std::make_shared<ScalarType>(static_cast <T>(5 * 6 / 2 ))));
148
150
149
- ValidateSum<TypeParam>(&this ->ctx_ , {" [0, 1, 2]" , " []" , " [3, 4, 5]" },
151
+ json = {" [0, 1, 2]" , " []" , " [3, 4, 5]" };
152
+ ValidateSum<TypeParam>(&this ->ctx_ , json,
150
153
Datum (std::make_shared<ScalarType>(static_cast <T>(5 * 6 / 2 ))));
151
154
152
155
const T expected_result = static_cast <T>(14 );
0 commit comments