diff --git a/cpp/testPoint2.cpp b/cpp/testPoint2.cpp index cccd6819c..906d48a7a 100644 --- a/cpp/testPoint2.cpp +++ b/cpp/testPoint2.cpp @@ -21,15 +21,11 @@ TEST( Point2, expmap) } /* ************************************************************************* */ -TEST( Point2, add) +TEST( Point2, arithmetic) { - CHECK(assert_equal( Point2(4,5)+Point2(1,1), Point2(5,6) )); -} - -/* ************************************************************************* */ -TEST( Point2, subtract) -{ - CHECK(assert_equal( Point2(4,5)-Point2(1,1), Point2(3,4) )); + CHECK(assert_equal( Point2(-5,-6), -Point2(5,6) )); + CHECK(assert_equal( Point2(5,6), Point2(4,5)+Point2(1,1))); + CHECK(assert_equal( Point2(3,4), Point2(4,5)-Point2(1,1) )); } /* ************************************************************************* */