Class ResultsVectorTestUtilities
Object
ResultsVectorTestUtilities
Utility class for testing ResultsVector objects.
This class provides methods to assert the equality of ResultsVector objects with expected values, using a small epsilon for floating-point comparisons.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertCalc
(ResultsVector results, Object... expectedVals) Asserts that a ResultsVector matches the expected values within a small epsilon.
-
Method Details
-
assertCalc
Asserts that a ResultsVector matches the expected values within a small epsilon.If the assertion fails, it prints debug information to the console before throwing an AssertionError.
- Parameters:
results
- the ResultsVector to checkexpectedVals
- the expected values to compare against- Throws:
AssertionError
- if the ResultsVector does not match the expected values within the epsilon
-