Skip to content

Commit

Permalink
Add failing 1.7 test
Browse files Browse the repository at this point in the history
This is a behavior change.

Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters committed Aug 21, 2023
1 parent 396a98f commit 114120d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/integration/world_dom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,22 @@ TEST(DOMWorld, LoadModelFrameSameName)
EXPECT_EQ(Pose(0, -2, 3, 0, 0, 0), pose);
}

/////////////////////////////////////////////////
TEST(DOMWorld, LoadModelFrameSameName_1_7)
{
const std::string testFile =
sdf::testing::TestFile("sdf", "world_model_frame_same_name.sdf");

// Load the SDF file
sdf::Root root;
auto errors = root.Load(testFile);
for (auto e : errors)
std::cout << e << std::endl;
EXPECT_FALSE(errors.empty());
EXPECT_EQ(10u, errors.size());
EXPECT_EQ(errors[0].Code(), sdf::ErrorCode::DUPLICATE_NAME);
}

/////////////////////////////////////////////////
TEST(DOMWorld, NestedModels)
{
Expand Down

0 comments on commit 114120d

Please sign in to comment.