1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:15:45 +08:00
This commit is contained in:
PercyDan54 2021-07-04 22:09:23 +08:00
parent 12371f7424
commit 44d540eb53
No known key found for this signature in database
GPG Key ID: 6AEA7C525131BAF3

View File

@ -0,0 +1,31 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using NUnit.Framework;
using osu.Game.Beatmaps;
namespace osu.Game.Tests.Localisation
{
[TestFixture]
public class BeatmapMetadataRomanisationTest
{
[Test]
public void TestNoUnicode()
{
var beatmap = new Beatmap
{
BeatmapInfo = new BeatmapInfo
{
Metadata = new BeatmapMetadata
{
Artist = "Artist",
Title = "Romanised title"
}
}
};
var romanisableString = beatmap.Metadata.ToRomanisableString();
Assert.AreEqual(romanisableString.Romanised, romanisableString.Original);
}
}
}