]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/geometry/point.cpp
added wxRect::operator+() and *() (union and intersection); also made other operators...
[wxWidgets.git] / tests / geometry / point.cpp
index ecdf7c9d06e948579d15ddeab4ecc34d30affd82..f04dcdab750ffc9b6f903a52b11a8a17d5cbcd78 100644 (file)
@@ -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 );