1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 16:27:43 +08:00

Fix test being dodgy

Hitobjects are in an indeterminate state until defaults are applied.
Adding the object to the beatmap will do this.
This commit is contained in:
Bartłomiej Dach 2024-09-30 14:32:11 +02:00
parent 48b03a328b
commit 493dcc7a1c
No known key found for this signature in database

View File

@ -112,6 +112,7 @@ namespace osu.Game.Tests.Editing
{
SliderVelocityMultiplier = slider_velocity
};
AddStep("add to beatmap", () => composer.EditorBeatmap.Add(referenceObject));
assertSnapDistance(base_distance * slider_velocity, referenceObject, true);
assertSnappedDistance(base_distance * slider_velocity + 10, base_distance * slider_velocity, referenceObject);