Skip to content

Commit

Permalink
resolve some nits
Browse files Browse the repository at this point in the history
  • Loading branch information
yetongumich committed May 12, 2021
1 parent a637737 commit 0fe12ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gtsam/nonlinear/tests/testExpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ TEST(Expression, BinaryDimensions) {
}

/* ************************************************************************* */
// Check dimensions by calling `traceSize` method.
// Check dimensions of execution trace.
TEST(Expression, BinaryTraceSize) {
typedef internal::BinaryExpression<Point3, Pose3, Point3> Binary;
size_t expectedTraceSize = sizeof(Binary::Record);
Expand Down Expand Up @@ -470,14 +470,14 @@ 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<Key, int> actual_dims, expected_dims = map_list_of<Key, int>(key1, 3)(key2, 3);
weighted_sum_.dims(actual_dims);
EXPECT(actual_dims == expected_dims);

Values values;
const Point3 point1(1, 0, 0), point2(0, 1, 0);
values.insert<Point3>(key1, point1);
values.insert<Point3>(key2, point2);

Expand Down
2 changes: 1 addition & 1 deletion tests/testExpressionFactor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0fe12ec

Please sign in to comment.