test copy constructor

release/4.3a0
Frank Dellaert 2012-01-08 03:57:55 +00:00
parent 651259e26b
commit 5c18f57fe8
1 changed files with 8 additions and 3 deletions

View File

@ -25,10 +25,15 @@ 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);
Point2 p1(1,2), p2(4,5);
Matrix H1, H2;
EXPECT(assert_equal(Point2(5,7), p1.compose(p2, H1, H2)));