Class DoubleVectorMethodTest

java.lang.Object
org.djunits.value.vdouble.vector.DoubleVectorMethodTest

public class DoubleVectorMethodTest extends Object
Test the incrementBy, etc. methods.

Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.

Author:
Peter Knoppers
  • Constructor Details

    • DoubleVectorMethodTest

      public DoubleVectorMethodTest()
  • Method Details

    • testVectorMethods

      @Test public void testVectorMethods() throws org.djunits.value.ValueRuntimeException, org.djunits.unit.util.UnitException
      Test the standard methods of all vector classes.
      Throws:
      org.djunits.unit.util.UnitException - on error
      org.djunits.value.ValueRuntimeException - on error
    • testImmutableVector

      @Test public void testImmutableVector()
      Test if mutable methods give an error in case the vector is immutable.
    • testVectorToString

      @Test public void testVectorToString()
      Test toString() methods. TODO: expand?
    • testSpecialVectorMethodsRelWithAbs

      @Test public void testSpecialVectorMethodsRelWithAbs()
      Test the extra methods that Absolute and Relative with Absolute matrices implement.
    • testInstantiateAbs

      @Test public void testInstantiateAbs()
      Test the instantiateAbs method and instantiateScalarAbsSI method.
    • testEquals

      @Test public void testEquals()
      Test the equals method.
    • operationTest

      @Test public void operationTest()
      Test the plus and similar methods.
    • compareSum

      public void compareSum(double[] left, double[] right, double[] sum)
      Check that two arrays and a sum array match.
      Parameters:
      left - double[]; the left array
      right - double[]; the right array
      sum - double[]; the sum array