diff --git a/gtsam/geometry/tests/testPoint2.cpp b/gtsam/geometry/tests/testPoint2.cpp index ec83c2ac7..3416361cd 100644 --- a/gtsam/geometry/tests/testPoint2.cpp +++ b/gtsam/geometry/tests/testPoint2.cpp @@ -25,11 +25,16 @@ using namespace gtsam; GTSAM_CONCEPT_TESTABLE_INST(Point2) GTSAM_CONCEPT_LIE_INST(Point2) +/* ************************************************************************* */ +TEST(Point2, constructor) { + Point2 p1(1,2), p2 = p1; + EXPECT(assert_equal(p1, p2)); +} + /* ************************************************************************* */ TEST(Point2, Lie) { - Point2 p1(1,2); - Point2 p2(4,5); - Matrix H1, H2; + Point2 p1(1,2), p2(4,5); + Matrix H1, H2; EXPECT(assert_equal(Point2(5,7), p1.compose(p2, H1, H2))); EXPECT(assert_equal(eye(2), H1));