From fb5c45f3b29d6fd24708efc7e6dad0534ced02d5 Mon Sep 17 00:00:00 2001 From: Emily Boudreaux Date: Tue, 17 Jun 2025 10:17:46 -0400 Subject: [PATCH] test(tests): updated tests to use fractional checks tests for eos and approx8 now use relative error to account for large dynamic range --- tests/network/approx8Test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/network/approx8Test.cpp b/tests/network/approx8Test.cpp index 899eaf68..e58a41d7 100644 --- a/tests/network/approx8Test.cpp +++ b/tests/network/approx8Test.cpp @@ -56,7 +56,7 @@ TEST_F(approx8Test, evaluate) { double H1MassFraction = netOut.composition.getMassFraction("H-1")/ 0.50166262445895604; double He4MassFraction = netOut.composition.getMassFraction("He-4") / 0.48172273720971226; - double relError = 1e-8; + double relError = 1e-6; EXPECT_NEAR(H1MassFraction, 1.0, relError); EXPECT_NEAR(He4MassFraction, 1.0, relError); EXPECT_NEAR(energyFraction, 1.0, relError);