From 6b6283c1512467819918c90191aa8372e96a00dd Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Fri, 3 Jan 2025 15:21:49 -0500 Subject: [PATCH] fix factor construction --- gtsam/discrete/tests/testDecisionTreeFactor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/discrete/tests/testDecisionTreeFactor.cpp b/gtsam/discrete/tests/testDecisionTreeFactor.cpp index 61ce9038d..dc18e0ab2 100644 --- a/gtsam/discrete/tests/testDecisionTreeFactor.cpp +++ b/gtsam/discrete/tests/testDecisionTreeFactor.cpp @@ -72,7 +72,7 @@ TEST(DecisionTreeFactor, constructors) { /* ************************************************************************* */ TEST(DecisionTreeFactor, Divide) { DiscreteKey A(0, 2), S(1, 2); - DecisionTreeFactor pA(A % "99/1"), pS(S % "50/50"); + DecisionTreeFactor pA = create(A % "99/1"), pS = create(S % "50/50"); DecisionTreeFactor joint = pA * pS; DecisionTreeFactor s = joint / pA; EXPECT(assert_equal(pS, s));