Skip to content

Commit

Permalink
Extend unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
sjahr committed Oct 6, 2023
1 parent fad738f commit 2e4d1d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/test/test_pipeline_planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ TEST_F(PipelinePlannerTest, testInitialization) {
// WHEN a PipelinePlanner instance is initialized
// THEN it does not throw
EXPECT_NO_THROW(pipeline_planner.init(robot_model));
EXPECT_EQ(pipeline_planner.getPlannerId(), "Unknown");
}

TEST_F(PipelinePlannerTest, testWithoutPlanningPipelines) {
Expand All @@ -44,6 +45,7 @@ TEST_F(PipelinePlannerTest, testValidPlan) {
std::make_shared<robot_trajectory::RobotTrajectory>(robot_model, robot_model->getJointModelGroup("group"));
// THEN it returns true
EXPECT_TRUE(pipeline_planner.plan(scene, scene, robot_model->getJointModelGroup("group"), 1.0, result));
EXPECT_EQ(pipeline_planner.getPlannerId(), "stomp");
}

TEST_F(PipelinePlannerTest, testInvalidPipelineID) {
Expand Down

0 comments on commit 2e4d1d7

Please sign in to comment.