Class SumTest

java.lang.Object
org.djutils.math.functions.SumTest

public class SumTest extends Object
Test the Sum class.

Copyright (c) 2024-2025 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Details

    • SumTest

      public SumTest()
  • Method Details

    • sumClassTest

      @Test public void sumClassTest()
      Test the Sum class.
    • checkOneValue

      public void checkOneValue(double expectedResult, double x, MathFunction f)
      Check that the result is as expected.
      Parameters:
      expectedResult - the expected result
      x - the value of x to put in
      f - the Function to use to convert x to the actual result