diff --git a/qa/tests/common/test_grid_helper.cpp b/qa/tests/common/test_grid_helper.cpp index 35ff6d64e0..f832fdeb41 100644 --- a/qa/tests/common/test_grid_helper.cpp +++ b/qa/tests/common/test_grid_helper.cpp @@ -96,11 +96,10 @@ BOOST_AUTO_TEST_CASE( AlignWithOriginOffset ) helper.SetOrigin( VECTOR2I( 25, 25 ) ); helper.SetGridSnapping( true ); - // When grid has an origin offset, alignment should still work from (0,0) reference - // AlignGrid doesn't use origin, just pure grid alignment + // When grid has an origin offset, alignment should work from the new reference point VECTOR2I aligned = helper.AlignGrid( VECTOR2I( 149, 251 ) ); - BOOST_CHECK_EQUAL( aligned.x, 100 ); - BOOST_CHECK_EQUAL( aligned.y, 300 ); + BOOST_CHECK_EQUAL( aligned.x, 125 ); + BOOST_CHECK_EQUAL( aligned.y, 225 ); } BOOST_AUTO_TEST_CASE( AlignWithAuxiliaryAxes )