X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c6e8c6f84a1420a9247fa56d342b561af730364c..433969811ec21a6036347f1be157e08f8f4720ec:/tests/geometry/point.cpp diff --git a/tests/geometry/point.cpp b/tests/geometry/point.cpp index ecdf7c9d06..f04dcdab75 100644 --- a/tests/geometry/point.cpp +++ b/tests/geometry/point.cpp @@ -87,6 +87,10 @@ void PointTestCase::Operators() p6 = p2; p6 = p2 - s; CPPUNIT_ASSERT( p3 == p5 ); CPPUNIT_ASSERT( p4 == p6 ); + p5 = p2; p5 = s + p2; + p6 = p2; p6 = s - p2; + CPPUNIT_ASSERT( p3 == p5 ); + CPPUNIT_ASSERT( p4 == -p6 ); p5 = p2; p5 += s; p6 = p2; p6 -= s; CPPUNIT_ASSERT( p3 == p5 );