mirror of https://github.com/ppy/osu
Fix map pool test scene using invalid mod acronyms
This commit is contained in:
parent
82b7e570cd
commit
6543c720ef
|
@ -92,7 +92,7 @@ public void TestJustEnoughMods()
|
|||
Ladder.CurrentMatch.Value.Round.Value.Beatmaps.Clear();
|
||||
|
||||
for (int i = 0; i < 11; i++)
|
||||
addBeatmap(i > 4 ? $"M{i}" : "NM");
|
||||
addBeatmap(i > 4 ? Ruleset.Value.CreateInstance().AllMods.ElementAt(i).Acronym : "NM");
|
||||
});
|
||||
|
||||
AddStep("reset match", () =>
|
||||
|
@ -118,7 +118,7 @@ public void TestManyMods()
|
|||
Ladder.CurrentMatch.Value.Round.Value.Beatmaps.Clear();
|
||||
|
||||
for (int i = 0; i < 12; i++)
|
||||
addBeatmap(i > 4 ? $"M{i}" : "NM");
|
||||
addBeatmap(i > 4 ? Ruleset.Value.CreateInstance().AllMods.ElementAt(i).Acronym : "NM");
|
||||
});
|
||||
|
||||
AddStep("reset match", () =>
|
||||
|
@ -130,7 +130,7 @@ public void TestManyMods()
|
|||
assertThreeWide();
|
||||
}
|
||||
|
||||
private void addBeatmap(string mods = "nm")
|
||||
private void addBeatmap(string mods = "NM")
|
||||
{
|
||||
Ladder.CurrentMatch.Value.Round.Value.Beatmaps.Add(new RoundBeatmap
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue