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