Skip to content

Commit 3d3f1c7

Browse files
author
AndyZe
committed
Add a unit test
1 parent ff14d91 commit 3d3f1c7

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tests/gtest_factory.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,14 @@ TEST(BehaviorTreeReload, ReloadSameTree)
389389
}
390390
}
391391

392+
TEST(BehaviorTreeFactory, TwoAsyncNodesInReactiveSequence)
393+
{
394+
BehaviorTreeFactory factory;
395+
396+
std::string path = FilePath("trees/two_async_nodes_in_reactive_seq.xml");
397+
EXPECT_ANY_THROW(auto tree = factory.createTreeFromFile(path));
398+
}
399+
392400
KeyValueVector makeTestMetadata()
393401
{
394402
return {
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<root BTCPP_format="4" main_tree_to_execute = "ParentNoInclude">
2+
<BehaviorTree ID="TwoAsyncNodesInReactiveSeq">
3+
<ReactiveSequence>
4+
<StatefulActionNode name="Async1"/>
5+
<StatefulActionNode name="Async2"/>
6+
</ReactiveSequence>
7+
</BehaviorTree>
8+
</root>

0 commit comments

Comments
 (0)