src/test/java/eu/digitisation/math/ArraysTest.java
@Test
    public void testScalar() {
        System.out.println("scalar");
        double[] x = {1, 2, 3};
        double[] y = {1, 2, 3};
        double expResult = 14.0;
        double result = Arrays.scalar(x, y);
        assertEquals(expResult, result, 0.0001);
    }
/**
     * Test of scalar method, of class ArrayMath.
     */
Test of scalar method, of class ArrayMath.
Test of scalar method of class ArrayMath .
@Test
    public void testScalar() {
        System.out.println("scalar");
        double[] x = {1, 2, 3};
        double[] y = {1, 2, 3};
        double expResult = 14.0;
        double result = Arrays.scalar(x, y);
        assertEquals(expResult, result, 0.0001);
    }
@ Test public void testScalar ( ) { System . out . println ( "scalar" ) ; double [ ] x = { 1 , 2 , 3 } ; double [ ] y = { 1 , 2 , 3 } ; double expResult = 14.0 ; double result = Arrays . scalar ( x , y ) ; assertEquals ( expResult , result , 0.0001 ) ; }
Test of scalar method, of class ArrayMath.
Test of scalar method of class ArrayMath .