From fecf617a74af08833b04cfa275564df2bc1a5808 Mon Sep 17 00:00:00 2001 From: Daniel Sharp Date: Thu, 7 Mar 2024 16:52:17 -0500 Subject: [PATCH] Fix test_MC --- tests/Test_MonotoneComponent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Test_MonotoneComponent.cpp b/tests/Test_MonotoneComponent.cpp index 0a1cb2bd..87700998 100644 --- a/tests/Test_MonotoneComponent.cpp +++ b/tests/Test_MonotoneComponent.cpp @@ -871,7 +871,8 @@ TEST_CASE("Testing MonotoneComponent CoeffGrad and LogDeterminantCoeffGrad", "[M SECTION("DiagonalCoeffIndices") { std::vector indices = comp.DiagonalCoeffIndices(); std::vector indices_ref = expansion.NonzeroDiagonalEntries(); - REQUIRE(indices == indices_ref); + bool same_indices = indices == indices_ref; + REQUIRE(same_indices); } }