diff --git a/src/tests/catch_tests.cxx b/src/tests/catch_tests.cxx index f2f72b33af3ff272d8d324962c147b4b42958ce0..d888e8fb0fd51f79d0094bae59684f36667f4f82 100644 --- a/src/tests/catch_tests.cxx +++ b/src/tests/catch_tests.cxx @@ -451,9 +451,9 @@ TEST_CASE("Test extrapolate from critical point", "") { auto errrhoL = SArhoL - rhosoln[0], errrhoV = SArhoV - rhosoln[1]; if (std::abs(errrhoL)/SArhoL > 1e-10) { - throw std::range_error("rhoL error > 1e-10"); } + throw std::range_error("rhoL error [" + std::to_string(errrhoL) + "] > 1e-10"); } if (std::abs(errrhoV)/SArhoV > 1e-10) { - throw std::range_error("rhoV error > 1e-10"); } + throw std::range_error("rhoV error [" + std::to_string(errrhoV) + "] > 1e-10"); } }; CHECK_NOTHROW(stepper(0.01)); CHECK_NOTHROW(stepper(0.1));