diff --git a/src/test/java/com/thealgorithms/maths/AverageTest.java b/src/test/java/com/thealgorithms/maths/AverageTest.java new file mode 100644 index 00000000..04d27ab4 --- /dev/null +++ b/src/test/java/com/thealgorithms/maths/AverageTest.java @@ -0,0 +1,14 @@ +package com.thealgorithms.maths; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + + +public class AverageTest { + double [] numbers = {3, 6, 9, 12, 15, 18, 21}; + @Test + public void testAverage() { + + Assertions.assertEquals(12, Average.average(numbers)); + } +}