Skip to content

Commit

Permalink
Add custom attribute to custom element in test (gazebosim#1406)
Browse files Browse the repository at this point in the history
Update test to confirm that gazebosim#54 is fixed.

Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters authored and [email protected] committed Aug 16, 2024
1 parent 7930178 commit d27306b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/integration/custom_elems_attrs.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<child>L2</child>
</joint>

<mysim:transmission name="simple_trans">
<mysim:transmission name="simple_trans" mysim:attr="custom_attribute">
<mysim:type>transmission_interface/SimpleTransmission</mysim:type>
<mysim:joint name="J1">
<mysim:hardwareInterface>EffortJointInterface</mysim:hardwareInterface>
Expand Down
2 changes: 1 addition & 1 deletion test/integration/sdf_custom.cc
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ TEST(SDFParser, ReloadCustomElements)
ASSERT_NE(nullptr, customElem2);

const std::string customElemStr =
R"(<mysim:transmission name='simple_trans'>
R"(<mysim:transmission name='simple_trans' mysim:attr='custom_attribute'>
<mysim:type>transmission_interface/SimpleTransmission</mysim:type>
<mysim:joint name='J1'>
<mysim:hardwareInterface>EffortJointInterface</mysim:hardwareInterface>
Expand Down

0 comments on commit d27306b

Please sign in to comment.