Fix QA result based on updated behavior

This commit is contained in:
Seth Hillbrand 2025-08-31 15:52:38 -07:00
parent 7b4f4540b4
commit 77a2330a33

View File

@ -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 )