Leon 5 jaren geleden
bovenliggende
commit
5f72e6dc5f

+ 1
- 1
src/test/java/rocks/zipcode/quiz5/fundamentals/calculator/AddTest.java Bestand weergeven

@@ -44,6 +44,6 @@ public class AddTest {
44 44
         Double actual = calculator.add(input1, input2);
45 45
 
46 46
         // then
47
-        Assert.assertEquals(expected, actual, 0);
47
+        Assert.assertEquals(expected, actual, 0.01);
48 48
     }
49 49
 }

+ 1
- 1
src/test/java/rocks/zipcode/quiz5/fundamentals/calculator/SquareTest.java Bestand weergeven

@@ -44,6 +44,6 @@ public class SquareTest {
44 44
         Double actual = calculator.square(input);
45 45
 
46 46
         // then
47
-        Assert.assertEquals(expected, actual, 0);
47
+        Assert.assertEquals(expected, actual, 0.01);
48 48
     }
49 49
 }