Permalink
Browse files

Test self-assignment case.

  • Loading branch information...
Antonio El Khoury
Antonio El Khoury committed Oct 16, 2012
1 parent 14a18ea commit f1c6da4edd29ee557babf0731454b00645fc701a
View
@@ -56,4 +56,7 @@ BOOST_AUTO_TEST_CASE (create_body)
// Create body by assignment.
body_t bodyAssigned = *bodyDynCast;
+
+ // Check self-assignment.
+ bodyAssigned = bodyAssigned;
}
@@ -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
@@ -64,4 +64,7 @@ BOOST_AUTO_TEST_CASE (create_foot)
// Create foot by assignment.
foot_t footAssigned = *footDynCast;
+
+ // Check self-assignment.
+ footAssigned = footAssigned;
}
View
@@ -64,4 +64,7 @@ BOOST_AUTO_TEST_CASE (create_hand)
// Create hand by assignment.
hand_t handAssigned = *handDynCast;
+
+ // Check self-assignment.
+ handAssigned = handAssigned;
}
@@ -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
@@ -56,4 +56,7 @@ BOOST_AUTO_TEST_CASE (create_joint)
// Create joint by assignment.
joint_t jointRotationAssigned = *jointRotationDynCast;
+
+ // Check self-assignment.
+ jointRotationAssigned = jointRotationAssigned;
}

0 comments on commit f1c6da4

Please sign in to comment.