Leon 5 years ago
parent
commit
5f72e6dc5f

+ 1
- 1
src/test/java/rocks/zipcode/quiz5/fundamentals/calculator/AddTest.java View File

44
         Double actual = calculator.add(input1, input2);
44
         Double actual = calculator.add(input1, input2);
45
 
45
 
46
         // then
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 View File

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