#include <catch2/catch.hpp>
#include "adore/mad/lpiecewiseconst.h"
◆ CATCH_CONFIG_MAIN
#define CATCH_CONFIG_MAIN |
◆ clear_above()
◆ clear_below() [1/2]
◆ clear_below() [2/2]
◆ insert() [1/4]
pwc insert |
( |
-1. |
0, |
|
|
1. |
0 |
|
) |
| |
Initial value:{
adore::mad::LPiecewiseConst<double,double> pwc
◆ 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 | ) |
|
◆ TEST_CASE()
TEST_CASE |
( |
"testing insert(x,y) and f(x)" |
, |
|
|
"" |
[LPiecewiseConst] |
|
) |
| |