Skip to content

Commit

Permalink
Merge pull request #28528 from bdach/break-autogeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy authored Jun 19, 2024
2 parents 32a7885 + a718af8 commit 9eb6752
Show file tree
Hide file tree
Showing 22 changed files with 523 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void TestVisibleDuringBreak()
StartTime = 5000,
}
},
Breaks = new List<BreakPeriod>
Breaks =
{
new BreakPeriod(2000, 4000),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public void TestInputSingularWithBreak([Values] bool pressBeforeSecondObject) =>
Autoplay = false,
Beatmap = new Beatmap
{
Breaks = new List<BreakPeriod>
Breaks =
{
new BreakPeriod(500, 2000),
},
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Osu.Tests/Mods/TestSceneOsuModNoScope.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void TestVisibleDuringBreak()
StartTime = 5000,
}
},
Breaks = new List<BreakPeriod>
Breaks =
{
new BreakPeriod(2000, 4000),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public void TestInputAlternatingWithBreak() => CreateModTest(new ModTestData
Autoplay = false,
Beatmap = new Beatmap
{
Breaks = new List<BreakPeriod>
Breaks =
{
new BreakPeriod(500, 2000),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public void TestInputBreaks() => CreateModTest(new ModTestData
Autoplay = false,
Beatmap = new Beatmap
{
Breaks = new List<BreakPeriod>
Breaks =
{
new BreakPeriod(100, 1600),
},
Expand Down
15 changes: 7 additions & 8 deletions osu.Game.Tests/Editing/Checks/CheckBreaksTest.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// 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 System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
using osu.Game.Beatmaps;
Expand Down Expand Up @@ -29,7 +28,7 @@ public void TestBreakTooShort()
{
var beatmap = new Beatmap<HitObject>
{
Breaks = new List<BreakPeriod>
Breaks =
{
new BreakPeriod(0, 649)
}
Expand All @@ -52,7 +51,7 @@ public void TestBreakStartsEarly()
new HitCircle { StartTime = 0 },
new HitCircle { StartTime = 1_200 }
},
Breaks = new List<BreakPeriod>
Breaks =
{
new BreakPeriod(100, 751)
}
Expand All @@ -75,7 +74,7 @@ public void TestBreakEndsLate()
new HitCircle { StartTime = 0 },
new HitCircle { StartTime = 1_298 }
},
Breaks = new List<BreakPeriod>
Breaks =
{
new BreakPeriod(200, 850)
}
Expand All @@ -98,7 +97,7 @@ public void TestBreakAfterLastObjectStartsEarly()
new HitCircle { StartTime = 0 },
new HitCircle { StartTime = 1200 }
},
Breaks = new List<BreakPeriod>
Breaks =
{
new BreakPeriod(1398, 2300)
}
Expand All @@ -121,7 +120,7 @@ public void TestBreakBeforeFirstObjectEndsLate()
new HitCircle { StartTime = 1100 },
new HitCircle { StartTime = 1500 }
},
Breaks = new List<BreakPeriod>
Breaks =
{
new BreakPeriod(0, 652)
}
Expand All @@ -145,7 +144,7 @@ public void TestBreakMultipleObjectsEarly()
new HitCircle { StartTime = 1_297 },
new HitCircle { StartTime = 1_298 }
},
Breaks = new List<BreakPeriod>
Breaks =
{
new BreakPeriod(200, 850)
}
Expand All @@ -168,7 +167,7 @@ public void TestBreaksCorrect()
new HitCircle { StartTime = 0 },
new HitCircle { StartTime = 1_300 }
},
Breaks = new List<BreakPeriod>
Breaks =
{
new BreakPeriod(200, 850)
}
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Tests/Editing/Checks/CheckDrainLengthTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void TestDrainTimeBreak()
new HitCircle { StartTime = 0 },
new HitCircle { StartTime = 40_000 }
},
Breaks = new List<BreakPeriod>
Breaks =
{
new BreakPeriod(10_000, 21_000)
}
Expand Down
Loading

0 comments on commit 9eb6752

Please sign in to comment.