]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/geometry/point.cpp
Make SetFont actually do something
[wxWidgets.git] / tests / geometry / point.cpp
index b81e836efe36c6a088c724076427c351bc6a40f3..f04dcdab750ffc9b6f903a52b11a8a17d5cbcd78 100644 (file)
@@ -21,6 +21,8 @@
     #include "wx/gdicmn.h"
 #endif // WX_PRECOMP
 
+#include "wx/math.h"
+
 // ----------------------------------------------------------------------------
 // test class
 // ----------------------------------------------------------------------------
@@ -85,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 );