Updated unit tests to match new lug rotation

This commit is contained in:
Sibo Van Gool 2021-06-18 22:35:51 +02:00 committed by Billy Olsen
parent 0fb216ae5a
commit 3f84149cb8
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ public class LaunchLugTest extends BaseTestCase {
lug.setInstanceCount(2);
double expX = 0.111 + body.getLocations()[0].x;
double expR = body.getOuterRadius()+lug.getOuterRadius();
double expR = -(body.getOuterRadius()+lug.getOuterRadius());
Coordinate expPos = new Coordinate( expX, expR, 0, 0);
Coordinate actPos[] = lug.getLocations();
assertEquals(" LaunchLug has the wrong x value: ", expPos.x, actPos[0].x, EPSILON);

View File

@ -89,7 +89,7 @@ public class RocketTest extends BaseTestCase {
}
LaunchLug lugs = (LaunchLug)body.getChild(1);
expLoc = new Coordinate(0.181, 0.015, 0);
expLoc = new Coordinate(0.181, -0.015, 0);
assertThat(lugs.getName()+" have incorrect count: ", lugs.getInstanceCount(), equalTo(1));
actLocs = lugs.getComponentLocations();
{ // singular instance: