Significantly reduce test case time.

This commit is contained in:
smoogipooo 2017-06-02 18:11:06 +09:00
parent a96c259a8e
commit 264bf17bc2
1 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ public override void Reset()
};
const double start_time = 500;
const double duration = 1000;
const double duration = 500;
Func<double, bool, DrawableTimingChange> createTimingChange = (time, gravity) =>
{
@ -67,7 +67,7 @@ public override void Reset()
{
Clear();
var rateAdjustClock = new StopwatchClock(true) { Rate = 0.5 };
var rateAdjustClock = new StopwatchClock(true) { Rate = 1 };
ManiaPlayfield playField;
Add(playField = new ManiaPlayfield(4)
@ -133,10 +133,10 @@ public override void Reset()
AddStep("Right special style", () => createPlayfield(8, SpecialColumnPosition.Right));
AddStep("Notes with input", () => createPlayfieldWithNotes(false));
AddWaitStep(15);
AddWaitStep((int)Math.Ceiling((start_time + duration) / TimePerAction));
AddStep("Notes with gravity", () => createPlayfieldWithNotes(true));
AddWaitStep(15);
AddWaitStep((int)Math.Ceiling((start_time + duration) / TimePerAction));
}
private void triggerKeyDown(Column column)