1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-31 20:12:55 +08:00

Fix tests

This commit is contained in:
Bartłomiej Dach 2024-06-18 16:41:13 +02:00
parent 44b9a06639
commit 623055b60a
No known key found for this signature in database

View File

@ -10,12 +10,12 @@ namespace osu.Game.Tests.Editing
[TestFixture] [TestFixture]
public class EditorTimestampParserTest public class EditorTimestampParserTest
{ {
public static readonly object?[][] test_cases = private static readonly object?[][] test_cases =
{ {
new object?[] { ":", false, null, null }, new object?[] { ":", false, null, null },
new object?[] { "1", true, new TimeSpan(0, 0, 1, 0), null }, new object?[] { "1", true, new TimeSpan(0, 0, 1, 0), null },
new object?[] { "99", true, new TimeSpan(0, 0, 99, 0), null }, new object?[] { "99", true, new TimeSpan(0, 0, 99, 0), null },
new object?[] { "300", false, null, null }, new object?[] { "3000", false, null, null },
new object?[] { "1:2", true, new TimeSpan(0, 0, 1, 2), null }, new object?[] { "1:2", true, new TimeSpan(0, 0, 1, 2), null },
new object?[] { "1:02", true, new TimeSpan(0, 0, 1, 2), null }, new object?[] { "1:02", true, new TimeSpan(0, 0, 1, 2), null },
new object?[] { "1:92", false, null, null }, new object?[] { "1:92", false, null, null },