| 56 | /****************TESTS START HERE***************************/ |
| 57 | |
| 58 | TEST_F(BehaviorTreeTest, Condition1ToFalseCondition2True) |
| 59 | { |
| 60 | condition_1.setExpectedResult(NodeStatus::FAILURE); |
| 61 | condition_2.setExpectedResult(NodeStatus::SUCCESS); |
| 62 | |
| 63 | BT::NodeStatus state = root.executeTick(); |
| 64 | |
| 65 | ASSERT_EQ(NodeStatus::RUNNING, state); |
| 66 | ASSERT_EQ(NodeStatus::SUCCESS, fal_conditions.status()); |
| 67 | ASSERT_EQ(NodeStatus::IDLE, condition_1.status()); |
| 68 | ASSERT_EQ(NodeStatus::IDLE, condition_2.status()); |
| 69 | ASSERT_EQ(NodeStatus::RUNNING, action_1.status()); |
| 70 | } |
| 71 | |
| 72 | TEST_F(BehaviorTreeTest, Condition2ToFalseCondition1True) |
| 73 | { |
nothing calls this directly
no test coverage detected