X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d76bb5b289b65bf4bfeb1e8b4c84b34693e4c73d..1d156af3247c862e51a7c62f569a3fd302052a42:/tests/geometry/size.cpp?ds=sidebyside diff --git a/tests/geometry/size.cpp b/tests/geometry/size.cpp index abc3591786..1df26717c7 100644 --- a/tests/geometry/size.cpp +++ b/tests/geometry/size.cpp @@ -43,7 +43,7 @@ private: // register in the unnamed registry so that these tests are run by default CPPUNIT_TEST_SUITE_REGISTRATION( SizeTestCase ); -// also include in it's own registry so that these tests can be run alone +// also include in its own registry so that these tests can be run alone CPPUNIT_TEST_SUITE_NAMED_REGISTRATION( SizeTestCase, "SizeTestCase" ); void SizeTestCase::Operators() @@ -58,6 +58,8 @@ void SizeTestCase::Operators() CPPUNIT_ASSERT( s3.GetWidth()==2 && s3.GetHeight()==2 ); s3 = s1 * 2; CPPUNIT_ASSERT( s3.GetWidth()==2 && s3.GetHeight()==4 ); + s3 = 2 * s1; + CPPUNIT_ASSERT( s3.GetWidth()==2 && s3.GetHeight()==4 ); s3 = s3 / 2; CPPUNIT_ASSERT( s3.GetWidth()==1 && s3.GetHeight()==2 );