From 865b0c01297438765a32cc6e6d19699018459f59 Mon Sep 17 00:00:00 2001 From: dellaert Date: Fri, 14 Nov 2014 02:13:11 +0100 Subject: [PATCH] Fixed compile issue in Debug mode --- gtsam_unstable/nonlinear/tests/testExpressionMeta.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtsam_unstable/nonlinear/tests/testExpressionMeta.cpp b/gtsam_unstable/nonlinear/tests/testExpressionMeta.cpp index 84a1ca720..b2cdcdf34 100644 --- a/gtsam_unstable/nonlinear/tests/testExpressionMeta.cpp +++ b/gtsam_unstable/nonlinear/tests/testExpressionMeta.cpp @@ -22,6 +22,7 @@ #include #include +#include using namespace std; using namespace gtsam; @@ -143,7 +144,7 @@ TEST(ExpressionFactor, Triple) { // Test out invoke TEST(ExpressionFactor, Invoke) { - assert(invoke(add,boost::fusion::make_vector(1,1)) == 2); + EXPECT_LONGS_EQUAL(2, invoke(plus(),boost::fusion::make_vector(1,1))); // Creating a Pose3 (is there another way?) boost::fusion::vector pair;