std::vector<int> a {1,2}; EXPECT_EQ(a, std::vector<int>{1,3, 4}); fails to compile (in gcc 6.3.1) with the following error: error: macro "EXPECT_EQ" passed 3 arguments, but takes just 2 std::vector<int> a {1,2}; EXPECT_EQ(a, (std::vector...
When building with clang, something as simple as EXPECT_EQ(0, someVector.size()); throws warnings like "Comparison of integers of different signs" at this comparison. It can be worked around by specifying 0U instead of 0, but it's pretty...
// std::vector<std::string> v_one_item_empty_string = {"a", ""}; // EXPECT_EQ("a-", absl::StrJoin(v_one_item_empty_string, "-")); // EXPECT_EQ(absl::StrJoin(v_one_item_empty_string, "-"), "a-"); // // std::vector<std::string> v_two_empty_string = {"", ...