Adjust precision for failing test

This commit is contained in:
smoogipoo 2018-06-12 16:20:38 +09:00
parent 34f23359bb
commit 93d2b5c4de
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}