mirror of https://github.com/ppy/osu
Adjust precision for failing test
This commit is contained in:
parent
34f23359bb
commit
93d2b5c4de
|
@ -66,7 +66,7 @@ public void TestZoom10()
|
|||
{
|
||||
reset();
|
||||
AddStep("Set zoom = 10", () => scrollContainer.Zoom = 10);
|
||||
AddAssert("Box at 1/2", () => Precision.AlmostEquals(boxQuad.Centre, scrollQuad.Centre));
|
||||
AddAssert("Box at 1/2", () => Precision.AlmostEquals(boxQuad.Centre, scrollQuad.Centre, 1));
|
||||
AddAssert("Box width = 10x", () => Precision.AlmostEquals(boxQuad.Size.X, 10 * scrollQuad.Size.X));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue