Package org.djunits.value.vdouble.vector
Class DoubleVectorMethodTest
java.lang.Object
org.djunits.value.vdouble.vector.DoubleVectorMethodTest
Test the incrementBy, etc. methods.
Copyright (c) 2013-2025 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompareSum(double[] left, double[] right, double[] sum) Check that two arrays and a sum array match.voidTest the plus and similar methods.voidTest the equals method.voidTest if mutable methods give an error in case the vector is immutable.voidTest the instantiateAbs method and instantiateScalarAbsSI method.final voidTest setDisplayUnit.voidTest the extra methods that Absolute and Relative with Absolute matrices implement.voidTest the standard methods of all vector classes.voidTest toString() methods.
-
Constructor Details
-
DoubleVectorMethodTest
public DoubleVectorMethodTest()
-
-
Method Details
-
testVectorMethods
Test the standard methods of all vector classes.- Throws:
UnitException- on errorValueRuntimeException- on error
-
testSetDisplayUnit
@Test public final void testSetDisplayUnit()Test setDisplayUnit. -
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- the left arrayright- the right arraysum- the sum array
-