Skip to content

Commit

Permalink
Update distance snap test when cursor at centre of grid to be in line…
Browse files Browse the repository at this point in the history
… with expectations
  • Loading branch information
peppy committed May 12, 2022
1 parent effc924 commit fda6194
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,14 @@ public void TestDistanceSpacing(float multiplier)
public void TestCursorInCentre()
{
AddStep("move mouse to centre", () => InputManager.MoveMouseTo(grid.ToScreenSpace(grid_position)));
assertSnappedDistance(0);
assertSnappedDistance(beat_length);
}

[Test]
public void TestCursorAlmostInCentre()
{
AddStep("move mouse to almost centre", () => InputManager.MoveMouseTo(grid.ToScreenSpace(grid_position) + new Vector2(1)));
assertSnappedDistance(beat_length);
}

[Test]
Expand Down

0 comments on commit fda6194

Please sign in to comment.