mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 14:12:55 +08:00
Add parsing test
This commit is contained in:
parent
539dd3134f
commit
05b5144dac
@ -186,6 +186,18 @@ namespace osu.Game.Tests.Beatmaps.Formats
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestDecodeBeatmapComboOffsets()
|
||||
{
|
||||
var decoder = new LegacyBeatmapDecoder();
|
||||
using (var resStream = Resource.OpenResource("hitobject-combo-offset.osu"))
|
||||
using (var stream = new StreamReader(resStream))
|
||||
{
|
||||
var beatmap = decoder.Decode(stream);
|
||||
Assert.AreEqual(3, ((IHasCombo)beatmap.HitObjects[0]).ComboOffset);
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestDecodeBeatmapHitObjects()
|
||||
{
|
||||
|
4
osu.Game.Tests/Resources/hitobject-combo-offset.osu
Normal file
4
osu.Game.Tests/Resources/hitobject-combo-offset.osu
Normal file
@ -0,0 +1,4 @@
|
||||
osu file format v14
|
||||
|
||||
[HitObjects]
|
||||
255,193,2170,49,0,0:0:0:0:
|
Loading…
Reference in New Issue
Block a user