From 8ec8a412094900fe657ec56d716639e21e8bdc2c Mon Sep 17 00:00:00 2001 From: Emily Boudreaux Date: Mon, 3 Mar 2025 09:55:47 -0500 Subject: [PATCH] test(tests/poly): updated polytests --- tests/poly/polyTest.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/poly/polyTest.cpp b/tests/poly/polyTest.cpp index 069d99b..3d4a11d 100644 --- a/tests/poly/polyTest.cpp +++ b/tests/poly/polyTest.cpp @@ -12,13 +12,15 @@ std::string CONFIG_FILENAME = std::string(getenv("MESON_SOURCE_ROOT")) + "/tests class polyTest : public ::testing::Test {}; TEST_F(polyTest, DefaultConstructor) { + Config& config = Config::getInstance(); + config.loadConfig(CONFIG_FILENAME); EXPECT_NO_THROW(PolySolver(1, 1)); } TEST_F(polyTest, Solve) { Config& config = Config::getInstance(); config.loadConfig(CONFIG_FILENAME); - PolySolver polytrope(1.5, 1); + PolySolver polytrope(1, 1); EXPECT_NO_THROW(polytrope.solve()); Probe::LogManager& logManager = Probe::LogManager::getInstance(); quill::Logger* logger = logManager.newFileLogger("polyTest.log", "polyTest"); @@ -34,5 +36,5 @@ TEST_F(polyTest, Solve) { // Get the ray solution const std::vector rayDirection = {0, 0}; int numSamples = 10; - std::vector samples = Probe::getRaySolution(solution, mesh, rayDirection, numSamples); + // std::vector samples = Probe::getRaySolution(solution, mesh, rayDirection, numSamples); } \ No newline at end of file