Add parsing test

This commit is contained in:
smoogipoo 2018-08-15 13:36:22 +09:00
parent 539dd3134f
commit 05b5144dac
2 changed files with 16 additions and 0 deletions

View File

@ -186,6 +186,18 @@ public void TestDecodeBeatmapColors()
}
}
[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()
{

View File

@ -0,0 +1,4 @@
osu file format v14
[HitObjects]
255,193,2170,49,0,0:0:0:0: