Commit d46691da authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

worked on main program tests

parent cae0bb03
......@@ -3,14 +3,15 @@
#include "MainProgram.hpp"
class TestMainProgram : public TestWithParam<ConfigMapForTest> {
class TestMainProgram : public TestWithParam<ConfigMapsForTest> {
protected:
std::unique_ptr<MainProgram> mainProgram;
void SetUp() override {
ConfigMapForTest configMapForTest;
std::map<std::string, std::string> finalMap = configMapForTest.defaultEllipticConfigMap;
std::map<std::string, std::string> additionalMap = GetParam().additionalConfigMap;
std::map<std::string, std::string> finalMap =
GetParam().defaultEllipticConfigMap;
std::map<std::string, std::string> additionalMap =
GetParam().additionalConfigMap;
for (auto &pair: additionalMap)
finalMap[pair.first] = pair.second;
......@@ -27,10 +28,21 @@ protected:
};
INSTANTIATE_TEST_CASE_P(TestMainProgram, TestMainProgram, Values(
ConfigMapForTest{std::map<std::string, std::string>{}},
// Tests with default elliptic config
// ConfigMapsForTest{defaultEllipticConfigMap,
// std::map<std::string, std::string>{}},
ConfigMapForTest{std::map<std::string, std::string>{
{"Problem", "StochasticLaplace2D"}}}
ConfigMapsForTest{defaultEllipticConfigMap,
std::map<std::string, std::string>{
{"Problem", "StochasticLaplace2D"}}}
// // Tests with default transport config
// ConfigMapsForTest{defaultTransportConfigMap,
// std::map<std::string, std::string>{}},
//
// ConfigMapsForTest{defaultTransportConfigMap,
// std::map<std::string, std::string>{
// {"Problem", "StochasticPollution2D"}}}
));
TEST_P(TestMainProgram, TestInitialize) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment