Class IntervalTest

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

public class IntervalTest extends Object
Test the Interval 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

    • IntervalTest

      public IntervalTest()
  • Method Details

    • intervalTest

      @Test public void intervalTest()
      Test the Interval class.
    • intersectionTest

      @Test public void intersectionTest()
      Test the intersection method.
    • verifyIntersection

      public void verifyIntersection(org.djutils.math.functions.Interval<?> intersection, double low, boolean includesLow, double high, boolean includesHigh, Object payload)
      Verify all aspects of an Interval.
      Parameters:
      intersection - the Interval to verify
      low - expected low boundary
      includesLow - is low boundary included
      high - expected high boundary
      includesHigh - is high boundary included
      payload - the expected paylowd