@Test public void testSquareOfTwoHundred() { Assert.assertTrue( (SqrtEstimationByBinarySearch.sqrt(200) * SqrtEstimationByBinarySearch.sqrt(200) - SqrtEstimationByBinarySearch.DELTA) > 0); }
@Test public void testPerfectSquareOfFour() { Assert.assertEquals(2.0, SqrtEstimationByBinarySearch.sqrt(4)); }
@Test public void testPerfectSquareOfSixteen() { Assert.assertEquals(4.0, SqrtEstimationByBinarySearch.sqrt(16)); }