Skip to content

Commit

Permalink
fix(behavior_path_start_planner): update test assertions for freespac…
Browse files Browse the repository at this point in the history
…e pull out path generation

Signed-off-by: kyoichi-sugahara <[email protected]>
  • Loading branch information
kyoichi-sugahara committed Dec 25, 2024
1 parent d167c16 commit 4112c50
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,12 @@ TEST_F(TestFreespacePullOut, GenerateValidFreespacePullOutPath)
PlannerDebugData debug_data;
auto result = call_plan(start_pose, goal_pose, debug_data);

// Assert that a valid shift pull out path is generated
ASSERT_TRUE(result.has_value()) << "shift pull out path generation failed.";
// Assert that a valid Freespace pull out path is generated
ASSERT_TRUE(result.has_value()) << "Freespace pull out path generation failed.";
EXPECT_EQ(result->partial_paths.size(), 2UL)
<< "Generated shift pull out path does not have the expected number of partial paths.";
<< "Freespace pull out path does not have the expected number of partial paths.";
EXPECT_EQ(debug_data.conditions_evaluation.back(), "success")
<< "shift pull out path planning did not succeed.";
<< "Freespace pull out path planning did not succeed.";
}

} // namespace autoware::behavior_path_planner

0 comments on commit 4112c50

Please sign in to comment.