diff --git a/test-suite/timegrid.cpp b/test-suite/timegrid.cpp index be75146aed4..421fd584c90 100644 --- a/test-suite/timegrid.cpp +++ b/test-suite/timegrid.cpp @@ -56,6 +56,19 @@ BOOST_AUTO_TEST_CASE(testConstructorMandatorySteps) tg.begin(), tg.end(), expected_times.begin(), expected_times.end()); } +BOOST_AUTO_TEST_CASE(testConstructorAdditionalStepsAutomatically) +{ + BOOST_TEST_MESSAGE("Testing TimeGrid construction with time step length determined automatically..."); + + const TimeGrid tg{{0.0, 1.0, 2.0, 4.0}, 0}; + + // Time step length is determined by minimal adjacent distance in given times + const std::vector