From 3fbc0c739f41fb011a6fc101b8981f3167591025 Mon Sep 17 00:00:00 2001 From: Richard Roberts Date: Tue, 6 Aug 2013 16:18:09 +0000 Subject: [PATCH] Fix in testGaussianBayesTree --- tests/testGaussianBayesTree.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/testGaussianBayesTree.cpp b/tests/testGaussianBayesTree.cpp index bb8a2da62..e1610192d 100644 --- a/tests/testGaussianBayesTree.cpp +++ b/tests/testGaussianBayesTree.cpp @@ -169,12 +169,10 @@ TEST( GaussianBayesTree, balanced_smoother_marginals ) TEST( GaussianBayesTree, balanced_smoother_shortcuts ) { // Create smoother with 7 nodes - Ordering ordering; - ordering += X(1),X(3),X(5),X(7),X(2),X(6),X(4); GaussianFactorGraph smoother = createSmoother(7); // Create the Bayes tree - GaussianBayesTree bayesTree = *smoother.eliminateMultifrontal(ordering); + GaussianBayesTree bayesTree = *smoother.eliminateMultifrontal(); // Check the conditional P(Root|Root) GaussianBayesNet empty; @@ -183,7 +181,7 @@ TEST( GaussianBayesTree, balanced_smoother_shortcuts ) EXPECT(assert_equal(empty,actual1,tol)); // Check the conditional P(C2|Root) - GaussianBayesTree::sharedClique C2 = bayesTree[ordering[X(3)]]; + GaussianBayesTree::sharedClique C2 = bayesTree[X(3)]; GaussianBayesNet actual2 = C2->shortcut(R); EXPECT(assert_equal(empty,actual2,tol));