From d97ed2dbc61739facd98ecea2ce21acf57ac8027 Mon Sep 17 00:00:00 2001 From: stephengold Date: Sat, 7 Sep 2024 22:03:42 -0700 Subject: [PATCH] bugfix: tolerance of the getPosition() assertion is too tight --- src/test/java/testjoltjni/junit/Test007.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/testjoltjni/junit/Test007.java b/src/test/java/testjoltjni/junit/Test007.java index 20f2e75f..95c22e77 100644 --- a/src/test/java/testjoltjni/junit/Test007.java +++ b/src/test/java/testjoltjni/junit/Test007.java @@ -216,7 +216,7 @@ private static void doHeightFieldShape() { Assert.assertEquals(2, shape.getBlockSize()); TestUtils.assertEquals(0f, 0f, 0f, shape.getCenterOfMass(), 0f); Assert.assertEquals(0f, shape.getInnerRadius(), 0f); - TestUtils.assertEquals(1f, 0f, 1f, shape.getPosition(1, 1), 1e-8f); + TestUtils.assertEquals(1f, 0f, 1f, shape.getPosition(1, 1), 1e-6f); Assert.assertEquals(3, shape.getRefCount()); Assert.assertEquals(EShapeSubType.HeightField, shape.getSubType()); Assert.assertEquals(EShapeType.HeightField, shape.getType());