From 5c18f57fe89339ebdcb79839c9d21950b21f053d Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Sun, 8 Jan 2012 03:57:55 +0000 Subject: [PATCH] test copy constructor --- gtsam/geometry/tests/testPoint2.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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));