@Test public void test_pi_add() { double result = MathLib.add(5, MathLib.getPI()); double expected = 8.141592653589793; assertEquals(expected, result, 0.00001); }
@Test public void testAddition() { double result = MathLib.add(18, 24); double expected = 42; assertEquals(expected, result, .00001); }
@Test public void testAdditionFail() { double result = MathLib.add(10, 10); double expected = 5; assertEquals(expected, result, .00001); }