mirror of
https://github.com/ppy/osu
synced 2025-01-03 12:52:10 +00:00
Add failing test cases covering NaN-timing-point sliders
This commit is contained in:
parent
b9eee29442
commit
e9ecad9839
@ -23,6 +23,7 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
[TestCase("uneven-repeat-slider")]
|
||||
[TestCase("old-stacking")]
|
||||
[TestCase("multi-segment-slider")]
|
||||
[TestCase("nan-slider")]
|
||||
public void Test(string name) => base.Test(name);
|
||||
|
||||
protected override IEnumerable<ConvertValue> CreateConvertValue(HitObject hitObject)
|
||||
|
@ -17,6 +17,7 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
|
||||
[TestCase(6.7115569159190587d, 206, "diffcalc-test")]
|
||||
[TestCase(1.4391311903612753d, 45, "zero-length-sliders")]
|
||||
[TestCase(0.14102693012101306d, 1, "nan-slider")]
|
||||
public void Test(double expectedStarRating, int expectedMaxCombo, string name)
|
||||
=> base.Test(expectedStarRating, expectedMaxCombo, name);
|
||||
|
||||
|
@ -0,0 +1 @@
|
||||
{"Mappings":[{"StartTime":77497.0,"Objects":[{"StartTime":77497.0,"EndTime":77497.0,"X":298.0,"Y":290.0},{"StartTime":77533.0,"EndTime":77533.0,"X":276.162567,"Y":293.0336}]}]}
|
18
osu.Game.Rulesets.Osu/Resources/Testing/Beatmaps/nan-slider.osu
Executable file
18
osu.Game.Rulesets.Osu/Resources/Testing/Beatmaps/nan-slider.osu
Executable file
@ -0,0 +1,18 @@
|
||||
osu file format v14
|
||||
|
||||
[Difficulty]
|
||||
HPDrainRate:5.8
|
||||
CircleSize:4
|
||||
OverallDifficulty:9.6
|
||||
ApproachRate:10
|
||||
SliderMultiplier:2
|
||||
SliderTickRate:1
|
||||
|
||||
[TimingPoints]
|
||||
77211,-100,4,3,50,70,0,0
|
||||
77497,8.40402703648439,4,3,51,70,1,8
|
||||
77497,NaN,4,3,51,70,0,8
|
||||
77498,285.714285714286,4,3,51,70,1,0
|
||||
|
||||
[HitObjects]
|
||||
298,290,77497,6,0,B|234:298|192:279|192:279|180:299|180:299|205:311|238:318|238:318|230:347|217:371|217:371|137:370|80:340|80:340|65:259|73:143|102:68|102:68|149:49|199:34|199:34|213:54|213:54|267:38|324:40|324:40|332:18|332:18|385:20|435:27|435:27|480:93|517:204|521:286|521:286|474:329|396:350|396:350|377:329|363:302|363:302|393:287|415:271|415:271|398:254|398:254|362:282|299:290,1,1723.66345596313,10|0,1:0|3:0,3:0:0:0:
|
Loading…
Reference in New Issue
Block a user