@Test public void testsquareRoot() { double result = MathLib.squareRoot(25); double expected = 5; assertEquals(expected, result, .00001); }
@Test public void test_pi_square() { double result = MathLib.squareRoot(MathLib.getPI()); double expected = 1.7724538509055159; assertEquals(expected, result, 0.00001); }
@Test public void testSquareRootFail() { double result = MathLib.squareRoot(9); double expected = 6; assertEquals(expected, result, .00001); }