Skip to content

Commit

Permalink
Pass tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Feb 5, 2025
1 parent 1a49ec1 commit 0a1c0b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/goal_task_planner/plan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ Dictionary Plan::run_lazy_lookahead(Dictionary p_state, Array p_todo_list, int p

for (int tries = 1; tries <= p_max_tries; tries++) {
if (verbose >= 1) {
print_line(vformat("run_lazy_lookahead: %sth call to find_plan:", tries, ordinals.get(tries, "")));
print_line(vformat("run_lazy_lookahead: %sth call to find_plan: %s", tries, ordinals.get(tries, "")));
}

Variant plan = find_plan(p_state, p_todo_list);
Expand Down
4 changes: 3 additions & 1 deletion modules/goal_task_planner/tests/test_logistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include "modules/goal_task_planner/multigoal.h"
#include "modules/goal_task_planner/plan.h"

#ifdef TOOLS_ENABLED
namespace TestLogistics {

// This file is based on the logistics-domain examples included with HGNpyhop:
Expand Down Expand Up @@ -326,7 +327,7 @@ Variant method_move_between_city(Dictionary p_state, String p_object, String p_l
void before_each(Dictionary &p_state, Ref<Plan> p_planner, Ref<Domain> p_the_domain) {
ERR_FAIL_COND(p_planner.is_null());
ERR_FAIL_COND(p_the_domain.is_null());
p_planner->set_verbose(0);
p_planner->set_verbose(3);
p_state.clear();
TypedArray<Domain> domains;
domains.push_back(p_the_domain);
Expand Down Expand Up @@ -619,5 +620,6 @@ TEST_CASE("[Modules][GoalTaskPlanner] Multigoal" * doctest::skip(true)) {
}

} // namespace TestLogistics
#endif // TOOLS_ENABLED

#endif // TEST_LOGISTICS_H

0 comments on commit 0a1c0b5

Please sign in to comment.