diff --git a/test/pitytest11/test/test_model.cc b/test/pitytest11/test/test_model.cc new file mode 100644 index 0000000..1708101 --- /dev/null +++ b/test/pitytest11/test/test_model.cc @@ -0,0 +1,36 @@ +#include "../src/PityUnit.hh" +#include "../src/PityModel.hh" +#include "../../framework/utils.hh" +#include "../../../src/std_utils.hh" +#include "../../../src/pEpLog.hh" +#include +#include +#include + +using namespace std; +using namespace pEp::Adapter; +using namespace pEp::PityTest11; + + +void test_node1(const PityUnit& unit) { +} + + +int main(int argc, char* argv[]) +{ + pEpLog::log("FSDFSD"); + PityModel::debug_log_enabled = false; + PityNode::debug_log_enabled = false; + PityModel model{ "test_Model", 3 }; + + for (PityNode n : model.getNodes()) { + pEpLog::log(n.to_string()); + } + + auto node1_unit = model.getNodes().at(0).getProcessUnit(); + PityUnit node1_test1 = PityUnit{ node1_unit.get(), "test1", nullptr }; +// model.getPerspective(0); + + model.rootUnit().run(); + // pEpLog::log(model.rootUnit().to_string()); +} \ No newline at end of file