mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 19:32:55 +08:00
Update Test cases
This commit is contained in:
parent
4e1e19728c
commit
6ddecfd806
@ -84,17 +84,14 @@ namespace osu.Game.Rulesets.Mania.Tests.Editor
|
|||||||
[Test]
|
[Test]
|
||||||
public void TestUnusualSelection()
|
public void TestUnusualSelection()
|
||||||
{
|
{
|
||||||
addStepClickLink("00:00:000 (0|1)", "invalid link");
|
addStepClickLink("00:00:000 (0|1)", "wrong offset");
|
||||||
AddAssert("snap to 1, select none", () => checkSnapAndSelectColumn(2_170));
|
AddAssert("snap to 1, select none", () => checkSnapAndSelectColumn(2_170));
|
||||||
|
|
||||||
addReset();
|
addReset();
|
||||||
addStepClickLink("00:00:000 (0)", "std link");
|
addStepClickLink("00:00:000 (2)", "std link");
|
||||||
AddAssert("snap and select 1", () => checkSnapAndSelectColumn(2_170, new List<(int, int)>
|
AddAssert("snap to 1, select none", () => checkSnapAndSelectColumn(2_170));
|
||||||
{ (2_170, 2) })
|
|
||||||
);
|
|
||||||
|
|
||||||
addReset();
|
addReset();
|
||||||
// TODO: discuss - this selects the first 2 objects on Stable, do we want that or is this fine?
|
|
||||||
addStepClickLink("00:00:000 (1,2)", "std link");
|
addStepClickLink("00:00:000 (1,2)", "std link");
|
||||||
AddAssert("snap to 1, select none", () => checkSnapAndSelectColumn(2_170));
|
AddAssert("snap to 1, select none", () => checkSnapAndSelectColumn(2_170));
|
||||||
}
|
}
|
||||||
|
@ -71,40 +71,24 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
|
|||||||
{
|
{
|
||||||
HitObject firstObject = null!;
|
HitObject firstObject = null!;
|
||||||
|
|
||||||
addStepClickLink("00:00:000 (1,2,3)", "invalid offset");
|
addStepClickLink("00:00:000 (0)", "invalid combo");
|
||||||
AddAssert("snap to next, select 1-2-3", () =>
|
AddAssert("snap to next, select none", () =>
|
||||||
{
|
{
|
||||||
firstObject = EditorBeatmap.HitObjects.First();
|
firstObject = EditorBeatmap.HitObjects.First();
|
||||||
return checkSnapAndSelectCombo(firstObject.StartTime, 1, 2, 3);
|
return checkSnapAndSelectCombo(firstObject.StartTime);
|
||||||
});
|
});
|
||||||
|
|
||||||
addReset();
|
addReset();
|
||||||
addStepClickLink("00:00:956 (2,3,4)", "invalid offset");
|
addStepClickLink("00:00:000 (1)", "wrong offset");
|
||||||
|
AddAssert("snap and select 1", () => checkSnapAndSelectCombo(firstObject.StartTime, 1));
|
||||||
|
|
||||||
|
addReset();
|
||||||
|
addStepClickLink("00:00:956 (2,3,4)", "wrong offset");
|
||||||
AddAssert("snap to next, select 2-3-4", () => checkSnapAndSelectCombo(firstObject.StartTime, 2, 3, 4));
|
AddAssert("snap to next, select 2-3-4", () => checkSnapAndSelectCombo(firstObject.StartTime, 2, 3, 4));
|
||||||
|
|
||||||
addReset();
|
|
||||||
addStepClickLink("00:00:000 (0)", "invalid offset");
|
|
||||||
AddAssert("snap and select 1", () => checkSnapAndSelectCombo(firstObject.StartTime, 1));
|
|
||||||
|
|
||||||
addReset();
|
|
||||||
addStepClickLink("00:00:000 (1)", "invalid offset");
|
|
||||||
AddAssert("snap and select 1", () => checkSnapAndSelectCombo(firstObject.StartTime, 1));
|
|
||||||
|
|
||||||
addReset();
|
|
||||||
addStepClickLink("00:00:000 (2)", "invalid offset");
|
|
||||||
AddAssert("snap and select 1", () => checkSnapAndSelectCombo(firstObject.StartTime, 1));
|
|
||||||
|
|
||||||
addReset();
|
|
||||||
addStepClickLink("00:00:000 (2,3)", "invalid offset");
|
|
||||||
AddAssert("snap to 1, select 2-3", () => checkSnapAndSelectCombo(firstObject.StartTime, 2, 3));
|
|
||||||
|
|
||||||
addReset();
|
addReset();
|
||||||
addStepClickLink("00:00:956 (956|1,956|2)", "mania link");
|
addStepClickLink("00:00:956 (956|1,956|2)", "mania link");
|
||||||
AddAssert("snap to next, select none", () => checkSnapAndSelectCombo(firstObject.StartTime));
|
AddAssert("snap to next, select none", () => checkSnapAndSelectCombo(firstObject.StartTime));
|
||||||
|
|
||||||
addReset();
|
|
||||||
addStepClickLink("00:00:000 (0|1)", "mania link");
|
|
||||||
AddAssert("snap to 1, select none", () => checkSnapAndSelectCombo(firstObject.StartTime));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user