diff --git a/gtsam/nonlinear/tests/testExpression.cpp b/gtsam/nonlinear/tests/testExpression.cpp index 012a5ae9c..aa922aa9a 100644 --- a/gtsam/nonlinear/tests/testExpression.cpp +++ b/gtsam/nonlinear/tests/testExpression.cpp @@ -203,7 +203,7 @@ TEST(Expression, BinaryDimensions) { } /* ************************************************************************* */ -// Check dimensions by calling `traceSize` method. +// Check dimensions of execution trace. TEST(Expression, BinaryTraceSize) { typedef internal::BinaryExpression Binary; size_t expectedTraceSize = sizeof(Binary::Record); @@ -470,7 +470,6 @@ TEST(Expression, UnaryOfSum) { /* ************************************************************************* */ TEST(Expression, WeightedSum) { const Key key1(42), key2(67); - const Point3 point1(1, 0, 0), point2(0, 1, 0); const Point3_ weighted_sum_ = 17 * Point3_(key1) + 23 * Point3_(key2); map actual_dims, expected_dims = map_list_of(key1, 3)(key2, 3); @@ -478,6 +477,7 @@ TEST(Expression, WeightedSum) { EXPECT(actual_dims == expected_dims); Values values; + const Point3 point1(1, 0, 0), point2(0, 1, 0); values.insert(key1, point1); values.insert(key2, point2); diff --git a/tests/testExpressionFactor.cpp b/tests/testExpressionFactor.cpp index 657e77761..87211dbd4 100644 --- a/tests/testExpressionFactor.cpp +++ b/tests/testExpressionFactor.cpp @@ -73,7 +73,7 @@ TEST(ExpressionFactor, Leaf) { } /* ************************************************************************* */ -// Test leaf expression with noise model of differnt variance. +// Test leaf expression with noise model of different variance. TEST(ExpressionFactor, Model) { using namespace leaf;