Leon 5 years ago
parent
commit
33120f10d8

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

40
         Double actual = calculator.squareRoot(input);
40
         Double actual = calculator.squareRoot(input);
41
 
41
 
42
         // then
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 View File

24
     @Test
24
     @Test
25
     public void test3() {
25
     public void test3() {
26
         // given
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
     @Test
30
     @Test