This commit is contained in:
2018-05-22 15:39:22 +02:00
parent 63cabe27fc
commit 20bc7330f6
5 changed files with 18 additions and 14 deletions

View File

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