2015-10-15 13:06:51 +02:00
|
|
|
#pragma once
|
|
|
|
#ifndef MESSMER_CRYFS_TEST_PROGRAMOPTIONS_PROGRAMOPTIONSTEST_H
|
|
|
|
#define MESSMER_CRYFS_TEST_PROGRAMOPTIONS_PROGRAMOPTIONSTEST_H
|
2015-09-29 14:29:10 +02:00
|
|
|
|
2016-02-11 16:39:42 +01:00
|
|
|
#include <gtest/gtest.h>
|
2015-09-29 14:29:10 +02:00
|
|
|
|
|
|
|
class ProgramOptionsTestBase: public ::testing::Test {
|
|
|
|
public:
|
|
|
|
|
2016-05-10 01:07:02 +02:00
|
|
|
void EXPECT_VECTOR_EQ(std::initializer_list<std::string> expected, const std::vector<std::string> &actual) {
|
|
|
|
std::vector<std::string> expectedVec(expected);
|
|
|
|
ASSERT_EQ(expectedVec.size(), actual.size());
|
2019-06-08 22:06:17 +02:00
|
|
|
for(size_t i = 0; i < expectedVec.size(); ++i) {
|
2016-05-10 01:07:02 +02:00
|
|
|
EXPECT_EQ(expectedVec[i], actual[i]);
|
2015-09-29 14:29:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|