Class ResultsVectorTestUtilities

Object
ResultsVectorTestUtilities

public class ResultsVectorTestUtilities extends Object
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 Details

    • assertCalc

      public static void assertCalc(ResultsVector results, Object... expectedVals)
      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 check
      expectedVals - the expected values to compare against
      Throws:
      AssertionError - if the ResultsVector does not match the expected values within the epsilon