• Home
  • Raw
  • Download

Lines Matching refs:data

152 void DoMathDataTest(data_1_1_t<RT, T> (&data)[N], RT f(T)) {
157 data[i].expected, f(data[i].input)) << "Failed on element " << i;
165 void DoMathDataTest(data_int_1_t<T> (&data)[N], int f(T)) {
168 EXPECT_EQ(data[i].expected, f(data[i].input)) << "Failed on element " << i;
176 void DoMathDataTest(data_long_1_t<T> (&data)[N], long f(T)) {
179 EXPECT_EQ(data[i].expected, f(data[i].input)) << "Failed on element " << i;
187 void DoMathDataTest(data_llong_1_t<T> (&data)[N], long long f(T)) {
190 EXPECT_EQ(data[i].expected, f(data[i].input)) << "Failed on element " << i;
198 void DoMathDataTest(data_1_2_t<RT, T1, T2> (&data)[N], RT f(T1, T2)) {
203data[i].expected, f(data[i].input1, data[i].input2)) << "Failed on element " << i;
211 void DoMathDataTest(data_2_1_t<RT1, RT2, T1> (&data)[N], void f(T1, RT1*, RT2*)) {
218 f(data[i].input, &out1, &out2);
219 EXPECT_PRED_FORMAT2(predicate1, data[i].expected1, out1) << "Failed on element " << i;
220 EXPECT_PRED_FORMAT2(predicate2, data[i].expected2, out2) << "Failed on element " << i;
228 void DoMathDataTest(data_2_1_t<RT1, RT2, T1> (&data)[N], RT1 f(T1, RT2*)) {
235 out1 = f(data[i].input, &out2);
236 EXPECT_PRED_FORMAT2(predicate1, data[i].expected1, out1) << "Failed on element " << i;
237 EXPECT_PRED_FORMAT2(predicate2, data[i].expected2, out2) << "Failed on element " << i;
245 void DoMathDataTest(data_1_int_1_t<RT1, T1> (&data)[N], RT1 f(T1, int*)) {
251 out1 = f(data[i].input, &out2);
252 EXPECT_PRED_FORMAT2(predicate1, data[i].expected1, out1) << "Failed on element " << i;
253 EXPECT_EQ(data[i].expected2, out2) << "Failed on element " << i;
261 void DoMathDataTest(data_1_int_2_t<RT1, T1, T2> (&data)[N], RT1 f(T1, T2, int*)) {
267 out1 = f(data[i].input1, data[i].input2, &out2);
268 EXPECT_PRED_FORMAT2(predicate1, data[i].expected1, out1) << "Failed on element " << i;
269 EXPECT_EQ(data[i].expected2, out2) << "Failed on element " << i;
277 void DoMathDataTest(data_1_3_t<RT, T1, T2, T3> (&data)[N], RT f(T1, T2, T3)) {
282data[i].expected, f(data[i].input1, data[i].input2, data[i].input3)) << "Failed on element " << i;