Skip to content

Commit

Permalink
Updated test for sdf behavior change (#1379)
Browse files Browse the repository at this point in the history
Signed-off-by: Jenn Nguyen <jenn@openrobotics.org>
Co-authored-by: Addisu Z. Taddese <addisu@openrobotics.org>
  • Loading branch information
jennuine and azeey authored Apr 18, 2022
1 parent 87f5920 commit 19ee4ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SdfGenerator_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,9 @@ TEST_F(ElementUpdateFixture, WorldWithModelsIncludedWithOneExpanded)
common::joinPaths(PROJECT_SOURCE_PATH, worldFile).c_str()));

tinyxml2::XMLDocument genSdfDoc;
genSdfDoc.Parse(elem->ToString("").c_str());
sdf::PrintConfig config;
config.SetOutPrecision(6);
genSdfDoc.Parse(elem->ToString("", config).c_str());

// Compare elements from the original sdf xml and the generated xml
auto origWorld = originalSdfDoc.RootElement()->FirstChildElement("world");
Expand Down

0 comments on commit 19ee4ae

Please sign in to comment.