1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Simplify TestSceneAccuracyCircle test specifications

This commit is contained in:
Dean Herbert 2023-02-09 15:41:55 +09:00
parent cf009432cc
commit 92eb6b6717

View File

@ -24,26 +24,26 @@ namespace osu.Game.Tests.Visual.Ranking
{ {
public partial class TestSceneAccuracyCircle : OsuTestScene public partial class TestSceneAccuracyCircle : OsuTestScene
{ {
[TestCase(0, ScoreRank.D)] [TestCase(0)]
[TestCase(0.2, ScoreRank.D)] [TestCase(0.2)]
[TestCase(0.5, ScoreRank.D)] [TestCase(0.5)]
[TestCase(0.6999, ScoreRank.D)] [TestCase(0.6999)]
[TestCase(0.7, ScoreRank.C)] [TestCase(0.7)]
[TestCase(0.75, ScoreRank.C)] [TestCase(0.75)]
[TestCase(0.7999, ScoreRank.C)] [TestCase(0.7999)]
[TestCase(0.8, ScoreRank.B)] [TestCase(0.8)]
[TestCase(0.85, ScoreRank.B)] [TestCase(0.85)]
[TestCase(0.8999, ScoreRank.B)] [TestCase(0.8999)]
[TestCase(0.9, ScoreRank.A)] [TestCase(0.9)]
[TestCase(0.925, ScoreRank.A)] [TestCase(0.925)]
[TestCase(0.9499, ScoreRank.A)] [TestCase(0.9499)]
[TestCase(0.95, ScoreRank.S)] [TestCase(0.95)]
[TestCase(0.975, ScoreRank.S)] [TestCase(0.975)]
[TestCase(0.9999, ScoreRank.S)] [TestCase(0.9999)]
[TestCase(1, ScoreRank.X)] [TestCase(1)]
public void TestRank(double accuracy, ScoreRank rank) public void TestRank(double accuracy)
{ {
var score = createScore(accuracy, rank); var score = createScore(accuracy, ScoreProcessor.RankFromAccuracy(accuracy));
addCircleStep(score); addCircleStep(score);
} }