From 1962cfac4efc4da2efa203a3008da7f54db0ac57 Mon Sep 17 00:00:00 2001 From: Billy Olsen Date: Wed, 2 Jun 2021 19:42:54 -0700 Subject: [PATCH] Fix FinSetTest.testTabLocation Commit 936333a2 re-introduced the AxialMethod.ABSOLUTE as an offset method but did not update the corresponding unit test. Add in the expected offset value for AxialMethod.ABSOLUTE. Fixes #931 Signed-off-by: Billy Olsen --- core/test/net/sf/openrocket/rocketcomponent/FinSetTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/test/net/sf/openrocket/rocketcomponent/FinSetTest.java b/core/test/net/sf/openrocket/rocketcomponent/FinSetTest.java index 7970d2cac..993e72ed1 100644 --- a/core/test/net/sf/openrocket/rocketcomponent/FinSetTest.java +++ b/core/test/net/sf/openrocket/rocketcomponent/FinSetTest.java @@ -83,7 +83,7 @@ public class FinSetTest extends BaseTestCase { final double expFront = 0.02; final AxialMethod[] methods = AxialMethod.axialOffsetMethods; - final double[] expShift = {0.02, 0.0, -0.02}; + final double[] expShift = {0.02, 0.02, 0.0, -0.02}; for( int caseIndex=0; caseIndex < methods.length; ++caseIndex ){ double actFront = fins.getTabFrontEdge(); assertEquals(" Front edge doesn't match!", expFront, actFront, EPSILON);