Errors projectile

This commit is contained in:
Leen Dereu
2018-05-22 22:08:19 +02:00
parent 5e9c6b25d9
commit 12defdc769
3 changed files with 11 additions and 4 deletions

View File

@@ -2437,7 +2437,6 @@ 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);
assertTrue((Math.abs(stepLocation[0] - expectedRifleLocation[0]) < 0.01)
|| (Math.abs(stepLocation[0] - expectedBazookaLocation[0]) < 0.01));