Package org.djunits.value.vfloat.vector
Class FloatVectorMethodTest
java.lang.Object
org.djunits.value.vfloat.vector.FloatVectorMethodTest
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
(float[] left, float[] right, float[] 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
-
FloatVectorMethodTest
public FloatVectorMethodTest()
-
-
Method Details
-
testVectorMethods
Test the standard methods of all vector classes.- Throws:
UnitException
- on errorValueRuntimeException
- 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 arrayright
- float[]; the right arraysum
- float[]; the sum array
-