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-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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
compareSum
(double[] left, double[] right, double[] sum) Check that two arrays and a sum array match.void
Test the plus and similar methods.void
Test the equals method.void
Test if mutable methods give an error in case the vector is immutable.void
Test the instantiateAbs method and instantiateScalarAbsSI method.void
Test the extra methods that Absolute and Relative with Absolute matrices implement.void
Test the standard methods of all vector classes.void
Test toString() methods.
-
Constructor Details
-
DoubleVectorMethodTest
public DoubleVectorMethodTest()
-
-
Method Details
-
testVectorMethods
@Test public void testVectorMethods() throws org.djunits.value.ValueRuntimeException, org.djunits.unit.util.UnitExceptionTest the standard methods of all vector classes.- Throws:
org.djunits.unit.util.UnitException
- on errororg.djunits.value.ValueRuntimeException
- on error
-
testImmutableVector
Test if mutable methods give an error in case the vector is immutable. -
testVectorToString
Test toString() methods. TODO: expand? -
testSpecialVectorMethodsRelWithAbs
Test the extra methods that Absolute and Relative with Absolute matrices implement. -
testInstantiateAbs
Test the instantiateAbs method and instantiateScalarAbsSI method. -
testEquals
Test the equals method. -
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 arrayright
- double[]; the right arraysum
- double[]; the sum array
-