From d577e6920d3039fa5bf5848722c1a02330387457 Mon Sep 17 00:00:00 2001
From: Ian Bell <ian.bell@nist.gov>
Date: Thu, 21 Oct 2021 11:01:39 -0400
Subject: [PATCH] Another sanity check in catch test on s^+

---
 src/tests/catch_tests.cxx | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/tests/catch_tests.cxx b/src/tests/catch_tests.cxx
index e3a6f45..5a4dc7d 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>;
-- 
GitLab