From 0a19c078e7d2f146219d8919296c4573afb36867 Mon Sep 17 00:00:00 2001 From: dellaert Date: Mon, 4 May 2015 10:04:42 -0700 Subject: [PATCH] Added traceSize checks --- gtsam/nonlinear/tests/testExpression.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtsam/nonlinear/tests/testExpression.cpp b/gtsam/nonlinear/tests/testExpression.cpp index a6b9386ac..84f180609 100644 --- a/gtsam/nonlinear/tests/testExpression.cpp +++ b/gtsam/nonlinear/tests/testExpression.cpp @@ -89,11 +89,13 @@ set expected = list_of(1); TEST(Expression, Unary1) { using namespace unary; Expression e(f1, p); + EXPECT_LONGS_EQUAL(112,e.traceSize()); EXPECT(expected == e.keys()); } TEST(Expression, Unary2) { using namespace unary; Expression e(f2, p); + EXPECT_LONGS_EQUAL(80,e.traceSize()); EXPECT(expected == e.keys()); } /* ************************************************************************* */