From c450222ff13404ae29427b9ab122e378e6037447 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Wed, 3 Apr 2019 20:16:37 -0400 Subject: [PATCH] test on ordering --- gtsam/linear/tests/testGaussianBayesNet.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gtsam/linear/tests/testGaussianBayesNet.cpp b/gtsam/linear/tests/testGaussianBayesNet.cpp index 3bc5f3371..74f07b92e 100644 --- a/gtsam/linear/tests/testGaussianBayesNet.cpp +++ b/gtsam/linear/tests/testGaussianBayesNet.cpp @@ -136,6 +136,15 @@ TEST( GaussianBayesNet, optimize3 ) EXPECT(assert_equal(expected, actual)); } +/* ************************************************************************* */ +TEST(GaussianBayesNet, ordering) +{ + Ordering expected; + expected += 0, 1; + const auto actual = noisyBayesNet.ordering(); + EXPECT(assert_equal(expected, actual)); +} + /* ************************************************************************* */ TEST( GaussianBayesNet, backSubstituteTranspose ) {