#ifndef CRYFS_TEST_PROGRAMOPTIONS_PROGRAMOPTIONSTEST_H #define CRYFS_TEST_PROGRAMOPTIONS_PROGRAMOPTIONSTEST_H #include class ProgramOptionsTestBase: public ::testing::Test { public: std::vector options(std::initializer_list options) { std::vector result; for (auto option : options) { result.push_back(const_cast(option)); } return result; } void EXPECT_VECTOR_EQ(std::initializer_list expected, const std::vector &actual) { std::vector expectedVec(expected); EXPECT_EQ(expectedVec.size(), actual.size()); for(unsigned int i = 0; i < expectedVec.size(); ++i) { EXPECT_EQ(std::string(expectedVec[i]), std::string(actual[i])); } } }; #endif