34 #include <gtest/gtest.h> 38 TEST(IndustrialUtilsSuite, vector_compare)
41 std::vector<std::string> v1;
42 std::vector<std::string> v2;
43 std::vector<std::string> v3;
47 EXPECT_TRUE(
isSame(v1, v2));
49 std::string i1 =
"item_1";
50 std::string i2 =
"item_2";
51 std::string i3 =
"item_3";
59 EXPECT_FALSE(
isSame(v1, v2));
66 EXPECT_FALSE(
isSame(v1, v2));
72 EXPECT_TRUE(
isSame(v1, v2));
80 EXPECT_FALSE(
isSame(v1, v3));
85 int main(
int argc,
char **argv)
87 testing::InitGoogleTest(&argc, argv);
88 return RUN_ALL_TESTS();
TEST(IndustrialUtilsSuite, vector_compare)
bool isSame(const std::vector< std::string > &lhs, const std::vector< std::string > &rhs)
Checks to see if sets are the same(same members, same order) Wraps std::equal method.
int main(int argc, char **argv)
bool isSimilar(std::vector< std::string > lhs, std::vector< std::string > rhs)
Checks to see if sets are similar(same members, any order) NOTE: Vectors are passed by copy because t...