mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 14:32:55 +08:00
Add failing test coverage for correct beatmap difficulty copy
This commit is contained in:
parent
eb939547a9
commit
fd1c8c3614
@ -187,6 +187,7 @@ namespace osu.Game.Tests.Visual.Editing
|
|||||||
StartTime = 1000
|
StartTime = 1000
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
|
AddStep("set approach rate", () => EditorBeatmap.Difficulty.ApproachRate = 4);
|
||||||
|
|
||||||
AddStep("save beatmap", () => Editor.Save());
|
AddStep("save beatmap", () => Editor.Save());
|
||||||
AddAssert("new beatmap persisted", () =>
|
AddAssert("new beatmap persisted", () =>
|
||||||
@ -218,6 +219,7 @@ namespace osu.Game.Tests.Visual.Editing
|
|||||||
return timingPoint.Time == 0 && timingPoint.BeatLength == 1000;
|
return timingPoint.Time == 0 && timingPoint.BeatLength == 1000;
|
||||||
});
|
});
|
||||||
AddAssert("created difficulty has objects", () => EditorBeatmap.HitObjects.Count == 2);
|
AddAssert("created difficulty has objects", () => EditorBeatmap.HitObjects.Count == 2);
|
||||||
|
AddAssert("approach rate correctly copied", () => EditorBeatmap.Difficulty.ApproachRate == 4);
|
||||||
|
|
||||||
AddStep("set unique difficulty name", () => EditorBeatmap.BeatmapInfo.DifficultyName = secondDifficultyName);
|
AddStep("set unique difficulty name", () => EditorBeatmap.BeatmapInfo.DifficultyName = secondDifficultyName);
|
||||||
AddStep("save beatmap", () => Editor.Save());
|
AddStep("save beatmap", () => Editor.Save());
|
||||||
|
Loading…
Reference in New Issue
Block a user