From 0d2558cbb5c59bf7643082de0fb54dcf82d2982e Mon Sep 17 00:00:00 2001 From: dellaert Date: Sun, 21 Jun 2015 23:33:59 -0700 Subject: [PATCH] Removed print --- gtsam/linear/tests/testGaussianBayesTree.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/gtsam/linear/tests/testGaussianBayesTree.cpp b/gtsam/linear/tests/testGaussianBayesTree.cpp index 1beac1994..4f7c5c335 100644 --- a/gtsam/linear/tests/testGaussianBayesTree.cpp +++ b/gtsam/linear/tests/testGaussianBayesTree.cpp @@ -84,14 +84,11 @@ TEST( GaussianBayesTree, eliminate ) GaussianBayesTree bt = *chain.eliminateMultifrontal(chainOrdering); Scatter scatter(chain); - BOOST_FOREACH(const Scatter::value_type& entry, scatter) - cout << entry.first << " " << entry.second.toString() << endl; - EXPECT_LONGS_EQUAL(4, scatter.size()); - EXPECT_LONGS_EQUAL(0, scatter.at(x1).slot); - EXPECT_LONGS_EQUAL(1, scatter.at(x2).slot); - EXPECT_LONGS_EQUAL(2, scatter.at(x3).slot); - EXPECT_LONGS_EQUAL(3, scatter.at(x4).slot); + EXPECT_LONGS_EQUAL(1, scatter.at(0).key); + EXPECT_LONGS_EQUAL(2, scatter.at(1).key); + EXPECT_LONGS_EQUAL(3, scatter.at(2).key); + EXPECT_LONGS_EQUAL(4, scatter.at(3).key); Matrix two = (Matrix(1, 1) << 2.).finished(); Matrix one = (Matrix(1, 1) << 1.).finished();