Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions tests/gtest_reactive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,13 @@ TEST(Reactive, MissingOrEmptyGenericChildIdIsRejected)
// GIVEN generic child tags without a usable registered ID.
for(const char* child : { "<Action/>", R"(<Action ID=""/>)" })
{
SCOPED_TRACE(child);
BT::BehaviorTreeFactory factory;
const std::string xml = std::string(R"(<root BTCPP_format="4"><BehaviorTree ID="Test">
<ReactiveSequence>)") +
child + "</ReactiveSequence></BehaviorTree></root>";

// WHEN registering the malformed tree.
// THEN the generic tag cannot stand in for a registered Behavior.
EXPECT_THROW(factory.registerBehaviorTreeFromText(xml), BT::RuntimeError);
EXPECT_THROW(factory.registerBehaviorTreeFromText(xml), BT::RuntimeError) << child;
}
}
Loading