Package org.djunits.value.vfloat.scalar
Class FloatScalarTest.MathTester
java.lang.Object
org.djunits.value.vfloat.scalar.FloatScalarTest.MathTester
- Enclosing class:
- FloatScalarTest
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
tester
(float inputValue, String operation, FloatScalar<?, ?> actualResult, float precision, FloatScalarTest.FloatToFloat function) Test a math function.
-
Constructor Details
-
MathTester
MathTester()
-
-
Method Details
-
tester
public static void tester(float inputValue, String operation, FloatScalar<?, ?> actualResult, float precision, FloatScalarTest.FloatToFloat function) Test a math function.- Parameters:
inputValue
- float; unprocessed valueoperation
- String; description of method that is being testedactualResult
- FloatScalar<?>; the actual result of the operationprecision
- float; expected accuracyfunction
- FloatToFloat; encapsulated function that converts one inputValue to an outputValue
-