File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#include " memilio/math/time_dependent_parameter_functor.h"
2+ #include " memilio/utils/logging.h"
23#include " memilio/utils/random_number_generator.h"
34
45#include < gtest/gtest.h>
@@ -29,15 +30,19 @@ class TestMathTdpf : public ::testing::Test
2930TEST_F (TestMathTdpf, zero)
3031{
3132 // Test that the Zero-TDPF always returns zero, using a random evaluation point.
32-
33+ mio::set_log_level (mio::LogLevel::trace);
34+ mio::log_info (" entered test" );
3335 // initialize
3436 mio::TimeDependentParameterFunctor tdpf;
37+ mio::log_info (" created tdpf" );
3538
3639 // verify output
3740 for (int i = 0 ; i < this ->num_evals ; i++) {
38- auto random_t_eval = this ->fuzzy_val (-std::numeric_limits<double >::max (), std::numeric_limits<double >::max ());
41+ double random_t_eval = this ->fuzzy_val (-std::numeric_limits<double >::max (), std::numeric_limits<double >::max ());
42+ mio::log_debug (" testing {}" , random_t_eval);
3943 EXPECT_EQ (tdpf (random_t_eval), 0.0 );
4044 }
45+ mio::log_info (" finished test" );
4146}
4247
4348TEST_F (TestMathTdpf, linearInterpolation)
You can’t perform that action at this time.
0 commit comments