@Test public void testMultiply() { double result = MathLib.multiply(5, 9); double anotherResult = MathLib.multiply(15, 10); double expected = 45; double unexpected = 10; assertEquals(expected, result, 0.00001); assertNotEquals(unexpected, anotherResult, 0.00001); }
@Test public void test_pi_multiply() { double result = MathLib.multiply(5, MathLib.getPI()); double expected = 15.707963267948966; assertEquals(expected, result, 0.00001); }