ADORe
ADORe is a modular open source software library and toolkit for decision making, planning, control and simulation of automated vehicles
test_lpiecewiseconst.cpp File Reference
#include <catch2/catch.hpp>
#include "adore/mad/lpiecewiseconst.h"
Include dependency graph for test_lpiecewiseconst.cpp:

Macros

#define CATCH_CONFIG_MAIN
 

Functions

 TEST_CASE ("testing insert(x,y) and f(x)", "[LPiecewiseConst]")
 
pwc insert (-1.0, 1.0)
 
pwc insert (1.0, 2.0)
 
pwc insert (2.0, 5.0)
 
 REQUIRE (lconstfun.limitLo()==-1.0)
 
pwc insert (3.0, 6.0)
 
pwc clear_below (2.0)
 
pwc clear_below (0.5)
 
pwc clear_above (2.0)
 
 REQUIRE (lconstfun.f(3.5)==5.0)
 

Macro Definition Documentation

◆ CATCH_CONFIG_MAIN

#define CATCH_CONFIG_MAIN

Function Documentation

◆ clear_above()

pwc clear_above ( 2.  0)

◆ clear_below() [1/2]

pwc clear_below ( 0.  5)

◆ clear_below() [2/2]

pwc clear_below ( 2.  0)

◆ insert() [1/4]

pwc insert ( -1.  0,
1.  0 
)
Initial value:
{
adore::mad::LPiecewiseConst<double,double> pwc
Here is the caller graph for this function:

◆ insert() [2/4]

pwc insert ( 1.  0,
2.  0 
)

◆ insert() [3/4]

pwc insert ( 2.  0,
5.  0 
)

◆ insert() [4/4]

pwc insert ( 3.  0,
6.  0 
)

◆ REQUIRE() [1/2]

REQUIRE ( lconstfun.  f3.5 = =5.0)

◆ REQUIRE() [2/2]

REQUIRE ( lconstfun.  limitLo() = =-1.0)
Here is the caller graph for this function:

◆ TEST_CASE()

TEST_CASE ( "testing insert(x,y) and f(x)"  ,
""  [LPiecewiseConst] 
)
Here is the call graph for this function: