Errors oplossen

This commit is contained in:
Leen Dereu
2018-05-22 16:01:14 +02:00
parent 119a112555
commit 9f2e91836c
2 changed files with 19 additions and 8 deletions

View File

@@ -2439,8 +2439,6 @@ public class Part3_FullFacadeTest {
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)