Leon 5 gadus atpakaļ
vecāks
revīzija
33120f10d8

+ 1
- 1
src/test/java/rocks/zipcode/quiz5/fundamentals/calculator/SquareRootTest.java Parādīt failu

@@ -40,6 +40,6 @@ public class SquareRootTest {
40 40
         Double actual = calculator.squareRoot(input);
41 41
 
42 42
         // then
43
-        Assert.assertEquals(expected, actual, 0);
43
+        Assert.assertEquals(expected, actual, 0.01);
44 44
     }
45 45
 }

+ 1
- 1
src/test/java/rocks/zipcode/quiz5/fundamentals/calculator/SquareRootsTest.java Parādīt failu

@@ -24,7 +24,7 @@ public class SquareRootsTest {
24 24
     @Test
25 25
     public void test3() {
26 26
         // given
27
-        test(new Double[]{12.0, 438.0, }, 144.0, 191844.0, 81.0);
27
+        test(new Double[]{12.0, 438.0, 9.0}, 144.0, 191844.0, 81.0);
28 28
     }
29 29
 
30 30
     @Test