src/test/java/eu/digitisation/math/ArraysTest.java
@Test
    public void testAverage_intArr() {
        System.out.println("average");
        int[] array = {1, 2, 3, -2};
        double expResult = 1.0;
        double result = Arrays.average(array);
        assertEquals(expResult, result, 0.0001);
    }
/**
     * Test of average method, of class ArrayMath.
     */
Test of average method, of class ArrayMath.
Test of average method of class ArrayMath .
@Test
    public void testAverage_intArr() {
        System.out.println("average");
        int[] array = {1, 2, 3, -2};
        double expResult = 1.0;
        double result = Arrays.average(array);
        assertEquals(expResult, result, 0.0001);
    }
@ Test public void testAverage_intArr ( ) { System . out . println ( "average" ) ; int [ ] array = { 1 , 2 , 3 , - 2 } ; double expResult = 1.0 ; double result = Arrays . average ( array ) ; assertEquals ( expResult , result , 0.0001 ) ; }
Test of average method, of class ArrayMath.
Test of average method of class ArrayMath .