From f4ed10d38e3dfba612ad344c8735ab4062003326 Mon Sep 17 00:00:00 2001 From: "Yubo \"Paul\" Yang" Date: Tue, 5 Jul 2022 10:11:30 -0400 Subject: [PATCH] one more missed Approx --- src/Particle/LongRange/tests/test_kcontainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Particle/LongRange/tests/test_kcontainer.cpp b/src/Particle/LongRange/tests/test_kcontainer.cpp index 337c00dd66..b4e7f80597 100644 --- a/src/Particle/LongRange/tests/test_kcontainer.cpp +++ b/src/Particle/LongRange/tests/test_kcontainer.cpp @@ -116,7 +116,7 @@ TEST_CASE("kcontainer at gamma in 2D", "[longrange]") for (int ldim = 0; ldim < ndim; ldim++) { CHECK(klists.kpts[ik][ldim] == gvecs[ik][ldim]); - CHECK(klists.kpts[ik][ldim] * blat == klists.kpts_cart[ik][ldim]); + CHECK(klists.kpts[ik][ldim] * blat == Approx(klists.kpts_cart[ik][ldim])); } } }