mirror of
https://github.com/ppy/osu
synced 2024-12-23 23:33:36 +00:00
Add failing test for legacy online ID decoding
This commit is contained in:
parent
c1a817fec6
commit
bfcb4f4f2d
@ -87,6 +87,20 @@ namespace osu.Game.Tests.Beatmaps.Formats
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestDecodeLegacyOnlineID()
|
||||
{
|
||||
var decoder = new TestLegacyScoreDecoder();
|
||||
|
||||
using (var resourceStream = TestResources.OpenResource("Replays/taiko-replay-with-legacy-online-id.osr"))
|
||||
{
|
||||
var score = decoder.Parse(resourceStream);
|
||||
|
||||
Assert.That(score.ScoreInfo.OnlineID, Is.EqualTo(-1));
|
||||
Assert.That(score.ScoreInfo.LegacyOnlineID, Is.EqualTo(255));
|
||||
}
|
||||
}
|
||||
|
||||
[TestCase(3, true)]
|
||||
[TestCase(6, false)]
|
||||
[TestCase(LegacyBeatmapDecoder.LATEST_VERSION, false)]
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user