33 std::vector<int> expected_int = {1, 2, 3};
34 EXPECT_EQ(toVector<int>(1, 2, 3), expected_int);
36 std::vector<double> expected_double = {1.1, 2.2, 3.3};
37 EXPECT_EQ(toVector<double>(1.1, 2.2, 3.3), expected_double);
39 std::vector<std::string> expected_string = {
"a",
"bb",
"ccc"};
40 EXPECT_EQ(toVector<std::string>(
"a",
"bb",
"ccc"), expected_string);
Testing functions in test_utils.
std::vector< T > toVector(Args &&... args)
Creates vector of T from argument list. Used in EXPECT_EQ macros for convenience.
TEST_F(TestUtilsTest, toVector)
Testing toVector function.