Skip to content

Commit

Permalink
Fix test 1
Browse files Browse the repository at this point in the history
Signed-off-by: Alberto Tudela <ajtudela@gmail.com>
  • Loading branch information
ajtudela committed Sep 18, 2024
1 parent 18ddfa3 commit 47925a1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dsr_util/test/test_dsr_api_ext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@ TEST_F(DSRApiExtTest, create_node_with_priority) {
TEST_F(DSRApiExtTest, create_node_with_pose) {
auto parent_node =
G_->create_node_with_priority<robot_node_type>("parent_node", 0, "test_source");

/*
if (auto id = G_->insert_node(parent_node); id.has_value()) {
auto node = G_->create_node_with_pose<robot_node_type, RT_edge_type>(
auto child_node = G_->create_node_with_pose<robot_node_type, RT_edge_type>(
"test_node", "parent_node", 0, "test_source");
EXPECT_EQ(node.name(), "test_node");
EXPECT_EQ(node.type(), "robot");
EXPECT_EQ(child_node.name(), "test_node");
EXPECT_EQ(child_node.type(), "robot");
// Check parent and level attributes, not the random position
auto attributes = node.attrs();
auto attributes = child_node.attrs();
auto search = attributes.find("parent");
EXPECT_TRUE(search != attributes.end());
EXPECT_EQ(std::get<uint64_t>(search->second.value()), id.value());
Expand All @@ -90,7 +90,7 @@ TEST_F(DSRApiExtTest, create_node_with_pose) {
search = attributes.find("pos_y");
EXPECT_TRUE(search != attributes.end());
EXPECT_NE(std::get<float>(search->second.value()), 0);
}
}*/
}

TEST_F(DSRApiExtTest, create_edge_with_source) {
Expand Down

0 comments on commit 47925a1

Please sign in to comment.