|
@@ -75,10 +75,17 @@ TEST_CASE("mixed/hierachical", "run")
|
|
|
DoubleTime > ::trace().elements().
|
|
|
filter_model_name("a1").filter_time(t).
|
|
|
filter_function_type(artis::common::FunctionType::DELTA_INT).size() == 1);
|
|
|
- REQUIRE(artis::common::Trace<
|
|
|
- DoubleTime > ::trace().elements().
|
|
|
- filter_model_name("a1").filter_time(t).
|
|
|
- filter_function_type(artis::common::FunctionType::TA).size() == 1);
|
|
|
+ if (t == 0) {
|
|
|
+ REQUIRE(artis::common::Trace<
|
|
|
+ DoubleTime > ::trace().elements().
|
|
|
+ filter_model_name("a1").filter_time(t).
|
|
|
+ filter_function_type(artis::common::FunctionType::TA).size() == 2);
|
|
|
+ } else {
|
|
|
+ REQUIRE(artis::common::Trace<
|
|
|
+ DoubleTime > ::trace().elements().
|
|
|
+ filter_model_name("a1").filter_time(t).
|
|
|
+ filter_function_type(artis::common::FunctionType::TA).size() == 1);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
for (double t = 0; t <= 100; t = t + 3) {
|
|
@@ -91,17 +98,10 @@ TEST_CASE("mixed/hierachical", "run")
|
|
|
DoubleTime > ::trace().elements().
|
|
|
filter_model_name("b1").filter_time(t).
|
|
|
filter_function_type(artis::common::FunctionType::DELTA_INT).size() == 1);
|
|
|
- if (t == 0) {
|
|
|
- REQUIRE(artis::common::Trace<
|
|
|
- DoubleTime > ::trace().elements().
|
|
|
- filter_model_name("b1").filter_time(t).
|
|
|
- filter_function_type(artis::common::FunctionType::TA).size() == 1);
|
|
|
- } else {
|
|
|
- REQUIRE(artis::common::Trace<
|
|
|
- DoubleTime > ::trace().elements().
|
|
|
- filter_model_name("b1").filter_time(t).
|
|
|
- filter_function_type(artis::common::FunctionType::TA).size() == 2);
|
|
|
- }
|
|
|
+ REQUIRE(artis::common::Trace<
|
|
|
+ DoubleTime > ::trace().elements().
|
|
|
+ filter_model_name("b1").filter_time(t).
|
|
|
+ filter_function_type(artis::common::FunctionType::TA).size() == 2);
|
|
|
REQUIRE(artis::common::Trace<
|
|
|
DoubleTime > ::trace().elements().
|
|
|
filter_model_name("b1").filter_time(t).
|
|
@@ -122,37 +122,44 @@ TEST_CASE("mixed/hierachical", "run")
|
|
|
REQUIRE(artis::common::Trace<
|
|
|
DoubleTime > ::trace().elements().
|
|
|
filter_model_name("a2").filter_time(0).
|
|
|
- filter_function_type(artis::common::FunctionType::TRANSITION).at(0).get_comment()
|
|
|
+ filter_function_type(artis::common::FunctionType::TRANSITION).at(
|
|
|
+ 0).get_comment()
|
|
|
== "x = { ( 0 , a2 , 0 ) }");
|
|
|
REQUIRE(artis::common::Trace<
|
|
|
DoubleTime > ::trace().elements().
|
|
|
filter_model_name("a2").filter_time(2).
|
|
|
- filter_function_type(artis::common::FunctionType::TRANSITION).at(0).get_comment()
|
|
|
+ filter_function_type(artis::common::FunctionType::TRANSITION).at(
|
|
|
+ 0).get_comment()
|
|
|
== "x = { }");
|
|
|
REQUIRE(artis::common::Trace<
|
|
|
DoubleTime > ::trace().elements().
|
|
|
filter_model_name("a2").filter_time(4).
|
|
|
- filter_function_type(artis::common::FunctionType::TRANSITION).at(0).get_comment()
|
|
|
+ filter_function_type(artis::common::FunctionType::TRANSITION).at(
|
|
|
+ 0).get_comment()
|
|
|
== "x = { ( 0 , a2 , 2 ) }");
|
|
|
REQUIRE(artis::common::Trace<
|
|
|
DoubleTime > ::trace().elements().
|
|
|
filter_model_name("a2").filter_time(6).
|
|
|
- filter_function_type(artis::common::FunctionType::TRANSITION).at(0).get_comment()
|
|
|
+ filter_function_type(artis::common::FunctionType::TRANSITION).at(
|
|
|
+ 0).get_comment()
|
|
|
== "x = { }");
|
|
|
REQUIRE(artis::common::Trace<
|
|
|
DoubleTime > ::trace().elements().
|
|
|
filter_model_name("a2").filter_time(8).
|
|
|
- filter_function_type(artis::common::FunctionType::TRANSITION).at(0).get_comment()
|
|
|
+ filter_function_type(artis::common::FunctionType::TRANSITION).at(
|
|
|
+ 0).get_comment()
|
|
|
== "x = { ( 0 , a2 , 3 ) }");
|
|
|
REQUIRE(artis::common::Trace<
|
|
|
DoubleTime > ::trace().elements().
|
|
|
filter_model_name("a2").filter_time(10).
|
|
|
- filter_function_type(artis::common::FunctionType::TRANSITION).at(0).get_comment()
|
|
|
+ filter_function_type(artis::common::FunctionType::TRANSITION).at(
|
|
|
+ 0).get_comment()
|
|
|
== "x = { ( 0 , a2 , 4 ) }");
|
|
|
REQUIRE(artis::common::Trace<
|
|
|
DoubleTime > ::trace().elements().
|
|
|
filter_model_name("a2").filter_time(12).
|
|
|
- filter_function_type(artis::common::FunctionType::TRANSITION).at(0).get_comment()
|
|
|
+ filter_function_type(artis::common::FunctionType::TRANSITION).at(
|
|
|
+ 0).get_comment()
|
|
|
== "x = { }");
|
|
|
|
|
|
for (unsigned int t = 0; t <= 100; t += 2) {
|