We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74c7dd7 commit 56a8e8bCopy full SHA for 56a8e8b
tests/gtest_factory.cpp
@@ -340,6 +340,23 @@ TEST(
340
ASSERT_EQ(NodeStatus::SUCCESS, tree.tickWhileRunning());
341
}
342
343
+TEST(
344
+ BehaviorTreeFactory,
345
+ WrongTreeName)
346
+{
347
+ const char* xmlA = R"(
348
+ <root BTCPP_format="4" >
349
+ <BehaviorTree ID="MainTree">
350
+ <AlwaysSuccess/>
351
+ </BehaviorTree>
352
+ </root> )";
353
+
354
+ BehaviorTreeFactory factory;
355
356
+ factory.registerBehaviorTreeFromText(xmlA);
357
+ EXPECT_ANY_THROW(factory.createTree("Wrong Name"));
358
+}
359
360
TEST(BehaviorTreeReload, ReloadSameTree)
361
{
362
const char* xmlA = R"(
0 commit comments