Class FloatVectorMethodTest

java.lang.Object
org.djunits.value.vfloat.vector.FloatVectorMethodTest

public class FloatVectorMethodTest 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

    • FloatVectorMethodTest

      public FloatVectorMethodTest()
  • Method Details

    • testVectorMethods

      @Test public void testVectorMethods() throws ValueRuntimeException, UnitException
      Test the standard methods of all vector classes.
      Throws:
      UnitException - on error
      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(float[] left, float[] right, float[] sum)
      Check that two arrays and a sum array match.
      Parameters:
      left - float[]; the left array
      right - float[]; the right array
      sum - float[]; the sum array