Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test self-assignment case.

  • Loading branch information...
commit f1c6da4edd29ee557babf0731454b00645fc701a 1 parent 14a18ea
Antonio El Khoury authored
View
3  tests/create-body.cc
@@ -56,4 +56,7 @@ BOOST_AUTO_TEST_CASE (create_body)
// Create body by assignment.
body_t bodyAssigned = *bodyDynCast;
+
+ // Check self-assignment.
+ bodyAssigned = bodyAssigned;
}
View
3  tests/create-dynamic-robot.cc
@@ -51,4 +51,7 @@ BOOST_AUTO_TEST_CASE (create_dynamic_robot)
// Create dynamic robot by assignment.
dynamicRobot_t robotAssigned = *robotDynCast;
+
+ // Check self-assignment.
+ robotAssigned = robotAssigned;
}
View
3  tests/create-foot.cc
@@ -64,4 +64,7 @@ BOOST_AUTO_TEST_CASE (create_foot)
// Create foot by assignment.
foot_t footAssigned = *footDynCast;
+
+ // Check self-assignment.
+ footAssigned = footAssigned;
}
View
3  tests/create-hand.cc
@@ -64,4 +64,7 @@ BOOST_AUTO_TEST_CASE (create_hand)
// Create hand by assignment.
hand_t handAssigned = *handDynCast;
+
+ // Check self-assignment.
+ handAssigned = handAssigned;
}
View
3  tests/create-humanoid-dynamic-robot.cc
@@ -52,4 +52,7 @@ BOOST_AUTO_TEST_CASE (create_humanoid_dynamic_robot)
// Create dynamic robot by assignment.
humanoidDynamicRobot_t robotAssigned = *robotDynCast;
+
+ // Check self-assignment.
+ robotAssigned = robotAssigned;
}
View
3  tests/create-joint.cc
@@ -56,4 +56,7 @@ BOOST_AUTO_TEST_CASE (create_joint)
// Create joint by assignment.
joint_t jointRotationAssigned = *jointRotationDynCast;
+
+ // Check self-assignment.
+ jointRotationAssigned = jointRotationAssigned;
}
Please sign in to comment.
Something went wrong with that request. Please try again.