efac089c76
- Switch clang-tidy to Clang 9 - Fix compiler and clang-tidy warnings produced by the previous points
20 lines
587 B
C++
20 lines
587 B
C++
#pragma once
|
|
#ifndef MESSMER_CRYFS_TEST_PROGRAMOPTIONS_PROGRAMOPTIONSTEST_H
|
|
#define MESSMER_CRYFS_TEST_PROGRAMOPTIONS_PROGRAMOPTIONSTEST_H
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
class ProgramOptionsTestBase: public ::testing::Test {
|
|
public:
|
|
|
|
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());
|
|
for(size_t i = 0; i < expectedVec.size(); ++i) {
|
|
EXPECT_EQ(expectedVec[i], actual[i]);
|
|
}
|
|
}
|
|
};
|
|
|
|
#endif
|