1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-05 23:22:55 +08:00

Fix tests asserting incorrectly

This commit is contained in:
Dean Herbert 2020-03-19 17:15:53 +09:00
parent 114b46c4f0
commit 3489514b65

View File

@ -327,7 +327,7 @@ namespace osu.Game.Rulesets.Osu.Tests
AddAssert("Tracking dropped", assertMidSliderJudgementFail);
}
private bool assertGreatJudge() => judgementResults.Last().Type == HitResult.Great;
private bool assertGreatJudge() => judgementResults.Any() && judgementResults.All(t => t.Type == HitResult.Great);
private bool assertHeadMissTailTracked() => judgementResults[^2].Type == HitResult.Great && judgementResults.First().Type == HitResult.Miss;