1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 07:42:57 +08:00

Add test cases for search length criteria

This commit is contained in:
solstice23 2022-07-21 18:59:48 +08:00
parent 6baaef432f
commit 52fad1e14d
No known key found for this signature in database
GPG Key ID: 7E7F5973D9260C8A

View File

@ -125,6 +125,10 @@ namespace osu.Game.Tests.NonVisual.Filtering
new object[] { "9m", TimeSpan.FromMinutes(9), TimeSpan.FromMinutes(1) },
new object[] { "0.25h", TimeSpan.FromHours(0.25), TimeSpan.FromHours(1) },
new object[] { "70", TimeSpan.FromSeconds(70), TimeSpan.FromSeconds(1) },
new object[] { "7m27s", TimeSpan.FromSeconds(447), TimeSpan.FromSeconds(1) },
new object[] { "6h5m", TimeSpan.FromMinutes(365), TimeSpan.FromMinutes(1) },
new object[] { "7:27", TimeSpan.FromSeconds(447), TimeSpan.FromSeconds(1) },
new object[] { "0:2:35", TimeSpan.FromSeconds(155), TimeSpan.FromSeconds(1) },
};
[Test]