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:
parent
48b03a328b
commit
493dcc7a1c
@ -112,6 +112,7 @@ namespace osu.Game.Tests.Editing
|
|||||||
{
|
{
|
||||||
SliderVelocityMultiplier = slider_velocity
|
SliderVelocityMultiplier = slider_velocity
|
||||||
};
|
};
|
||||||
|
AddStep("add to beatmap", () => composer.EditorBeatmap.Add(referenceObject));
|
||||||
|
|
||||||
assertSnapDistance(base_distance * slider_velocity, referenceObject, true);
|
assertSnapDistance(base_distance * slider_velocity, referenceObject, true);
|
||||||
assertSnappedDistance(base_distance * slider_velocity + 10, base_distance * slider_velocity, referenceObject);
|
assertSnappedDistance(base_distance * slider_velocity + 10, base_distance * slider_velocity, referenceObject);
|
||||||
|
Loading…
Reference in New Issue
Block a user