mirror of https://github.com/ppy/osu
Add parsing test
This commit is contained in:
parent
539dd3134f
commit
05b5144dac
|
@ -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]
|
[Test]
|
||||||
public void TestDecodeBeatmapHitObjects()
|
public void TestDecodeBeatmapHitObjects()
|
||||||
{
|
{
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
osu file format v14
|
||||||
|
|
||||||
|
[HitObjects]
|
||||||
|
255,193,2170,49,0,0:0:0:0:
|
Loading…
Reference in New Issue