]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/geometry/size.cpp
Better fix
[wxWidgets.git] / tests / geometry / size.cpp
index abc359178675bc4ccb2aa546ff70c56147871abf..36925e0b212e035676919973c641d0e180ab160e 100644 (file)
@@ -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 );