Leon vor 5 Jahren
Ursprung
Commit
5f72e6dc5f

+ 1
- 1
src/test/java/rocks/zipcode/quiz5/fundamentals/calculator/AddTest.java Datei anzeigen

@@ -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 Datei anzeigen

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