diff --git a/src/tests/catch_tests.cxx b/src/tests/catch_tests.cxx index e3a6f4525ea70c173f00f9efdfd713e015315acf..5a4dc7d9cf4e5cc56a889c5a82ec9ee1df4b7612 100644 --- a/src/tests/catch_tests.cxx +++ b/src/tests/catch_tests.cxx @@ -291,6 +291,10 @@ TEST_CASE("Trace critical locus for vdW", "[vdW][crit]") Eigen::ArrayXd rhovec0(2); rhovec0 = 0.0; rhovec0[ifluid] = rhoc0; REQUIRE(rhovec0[ifluid] / rhovec0.sum() == 1.0); + using id = IsochoricDerivatives<decltype(vdW)>; + double splus = id::get_splus(vdW, T0, rhovec0); + REQUIRE(splus == Approx(-log(1 - 1.0 / 3.0))); + auto tic0 = std::chrono::steady_clock::now(); std::string filename = ""; using ct = CriticalTracing<decltype(vdW), double, Eigen::ArrayXd>;