X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3e8f9a4980bb865cfc14e9e1d423181ee2efd17e..c2ebca9b9cc5365cf7e53d6a95482b282fbc0b51:/tests/geometry/point.cpp?ds=sidebyside diff --git a/tests/geometry/point.cpp b/tests/geometry/point.cpp index b81e836efe..f04dcdab75 100644 --- a/tests/geometry/point.cpp +++ b/tests/geometry/point.cpp @@ -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 );