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

Update diffcalc test to match ground-truth formula

This commit is contained in:
Bartłomiej Dach 2021-08-01 15:32:10 +02:00
parent ea2ef55a8b
commit c371e67d70
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -15,13 +15,13 @@ namespace osu.Game.Rulesets.Osu.Tests
{
protected override string ResourceAssembly => "osu.Game.Rulesets.Osu";
[TestCase(6.7568168283591499d, "diffcalc-test")]
[TestCase(1.0348244046058293d, "zero-length-sliders")]
[TestCase(6.4164199087433484d, "diffcalc-test")]
[TestCase(1.0028132594779837d, "zero-length-sliders")]
public void Test(double expected, string name)
=> base.Test(expected, name);
[TestCase(8.4783236764532557d, "diffcalc-test")]
[TestCase(1.2708532136987165d, "zero-length-sliders")]
[TestCase(8.0749334911818469d, "diffcalc-test")]
[TestCase(1.2251606765323657d, "zero-length-sliders")]
public void TestClockRateAdjusted(double expected, string name)
=> Test(expected, name, new OsuModDoubleTime());