1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 03:22:57 +08:00

Add failing test showing crash when adjusting offset with no HitEvents

This commit is contained in:
Dean Herbert 2024-11-14 16:03:00 +09:00
parent 5cc1cbe880
commit 1b6952c42a
No known key found for this signature in database

View File

@ -40,6 +40,13 @@ namespace osu.Game.Tests.Visual.Ranking
AddSliderStep("height", 0.0f, 1000.0f, height.Value, height.Set);
}
[Test]
public void TestZeroEvents()
{
createTest(new List<HitEvent>());
AddStep("update offset", () => graph.UpdateOffset(10));
}
[Test]
public void TestManyDistributedEventsOffset()
{