From 9dc29e008bb9755836a4140be4656dd650691f77 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Fri, 6 Sep 2024 11:20:38 -0400 Subject: [PATCH] fix test --- gtsam/hybrid/tests/testGaussianMixtureFactor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/hybrid/tests/testGaussianMixtureFactor.cpp b/gtsam/hybrid/tests/testGaussianMixtureFactor.cpp index 21d3fbf83..7452376c9 100644 --- a/gtsam/hybrid/tests/testGaussianMixtureFactor.cpp +++ b/gtsam/hybrid/tests/testGaussianMixtureFactor.cpp @@ -811,7 +811,7 @@ TEST(GaussianMixtureFactor, DifferentMeansFG) { VectorValues cont0 = bn->optimize(dv0); double error0 = bn->error(HybridValues(cont0, dv0)); // regression - EXPECT_DOUBLES_EQUAL(0.69314718056, error, 1e-9); + EXPECT_DOUBLES_EQUAL(0.69314718056, error0, 1e-9); DiscreteValues dv1{{M(1), 1}}; VectorValues cont1 = bn->optimize(dv1);