test(tests/poly): updated polytests
This commit is contained in:
@@ -12,13 +12,15 @@ std::string CONFIG_FILENAME = std::string(getenv("MESON_SOURCE_ROOT")) + "/tests
|
|||||||
class polyTest : public ::testing::Test {};
|
class polyTest : public ::testing::Test {};
|
||||||
|
|
||||||
TEST_F(polyTest, DefaultConstructor) {
|
TEST_F(polyTest, DefaultConstructor) {
|
||||||
|
Config& config = Config::getInstance();
|
||||||
|
config.loadConfig(CONFIG_FILENAME);
|
||||||
EXPECT_NO_THROW(PolySolver(1, 1));
|
EXPECT_NO_THROW(PolySolver(1, 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_F(polyTest, Solve) {
|
TEST_F(polyTest, Solve) {
|
||||||
Config& config = Config::getInstance();
|
Config& config = Config::getInstance();
|
||||||
config.loadConfig(CONFIG_FILENAME);
|
config.loadConfig(CONFIG_FILENAME);
|
||||||
PolySolver polytrope(1.5, 1);
|
PolySolver polytrope(1, 1);
|
||||||
EXPECT_NO_THROW(polytrope.solve());
|
EXPECT_NO_THROW(polytrope.solve());
|
||||||
Probe::LogManager& logManager = Probe::LogManager::getInstance();
|
Probe::LogManager& logManager = Probe::LogManager::getInstance();
|
||||||
quill::Logger* logger = logManager.newFileLogger("polyTest.log", "polyTest");
|
quill::Logger* logger = logManager.newFileLogger("polyTest.log", "polyTest");
|
||||||
@@ -34,5 +36,5 @@ TEST_F(polyTest, Solve) {
|
|||||||
// Get the ray solution
|
// Get the ray solution
|
||||||
const std::vector<double> rayDirection = {0, 0};
|
const std::vector<double> rayDirection = {0, 0};
|
||||||
int numSamples = 10;
|
int numSamples = 10;
|
||||||
std::vector<double> samples = Probe::getRaySolution(solution, mesh, rayDirection, numSamples);
|
// std::vector<double> samples = Probe::getRaySolution(solution, mesh, rayDirection, numSamples);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user