fixes
This commit is contained in:
@@ -2437,7 +2437,10 @@ public class Part3_FullFacadeTest {
|
||||
double[] stepLocation = facade.getJumpStep(projectile, 0.1);
|
||||
double[] expectedRifleLocation = new double[] { 2.997, 9.275 };
|
||||
double[] expectedBazookaLocation = new double[] { 6.114, 3.875 };
|
||||
System.out.println(projectile instanceof Rifle);
|
||||
assertEquals("Result must have exactly 2 coordinates", 2, stepLocation.length);
|
||||
System.out.println(stepLocation[0] + " " + stepLocation[1]);
|
||||
System.out.println(projectile.getLocationArray()[0] + " " + projectile.getLocationArray()[1]);
|
||||
assertTrue((Math.abs(stepLocation[0] - expectedRifleLocation[0]) < 0.01)
|
||||
|| (Math.abs(stepLocation[0] - expectedBazookaLocation[0]) < 0.01));
|
||||
assertTrue((Math.abs(stepLocation[1] - expectedRifleLocation[1]) < 0.01)
|
||||
|
||||
Reference in New Issue
Block a user