| 41 | } // namespace behavior |
| 42 | |
| 43 | static behavior::node_t make_test_node( const std::string &goal, const behavior::status_t *status ) |
| 44 | { |
| 45 | behavior::node_t node; |
| 46 | if( !goal.empty() ) { |
| 47 | node.set_goal( goal ); |
| 48 | } |
| 49 | node.add_predicate( [status]( const behavior::oracle_t *, const std::string & ) { |
| 50 | return *status; |
| 51 | } ); |
| 52 | return node; |
| 53 | } |
| 54 | |
| 55 | TEST_CASE( "behavior_tree", "[behavior]" ) |
| 56 | { |
no test coverage detected