1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 05:22:54 +08:00

Fixed TestCatcherCatchWidth failing

This commit is contained in:
Drison64 2022-09-18 22:05:09 +02:00
parent 6d7d80a4fb
commit ca9fe9f240

View File

@ -108,14 +108,14 @@ namespace osu.Game.Rulesets.Catch.Tests
float halfWidth = Catcher.CalculateCatchWidth(new BeatmapDifficulty { CircleSize = 0 }) / 2;
AddStep("catch fruit", () =>
{
attemptCatch(new Fruit { X = -halfWidth + 1 });
attemptCatch(new Fruit { X = halfWidth - 1 });
attemptCatch(new Fruit { OriginalX = -halfWidth + 1 });
attemptCatch(new Fruit { OriginalX = halfWidth - 1 });
});
checkPlate(2);
AddStep("miss fruit", () =>
{
attemptCatch(new Fruit { X = -halfWidth - 1 });
attemptCatch(new Fruit { X = halfWidth + 1 });
attemptCatch(new Fruit { OriginalX = -halfWidth - 1 });
attemptCatch(new Fruit { OriginalX = halfWidth + 1 });
});
checkPlate(2);
}