Skip to content

Commit

Permalink
Cleaned up the unit tests just a tad.
Browse files Browse the repository at this point in the history
  • Loading branch information
kphawkins committed Jul 6, 2012
1 parent 652a223 commit 460834d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hrl_geom/src/hrl_geom/pose_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ def main():
errors = 0
for type_from in PoseConv.POSE_TYPES:
for type_to in PoseConv.POSE_TYPES:
print
print "Types: FROM %s, TO %s" % (type_from, type_to)
exec("from_pose = PoseConv.to_%s(pose)" % type_from)
if from_pose is None or (type(from_pose) is tuple and from_pose[0] is None):
Expand Down Expand Up @@ -443,15 +444,14 @@ def main():
print orig_pose
errors += 1
continue
print
print "-" * 50
if type_from != PoseConv.get_type(from_pose) or type_to != PoseConv.get_type(to_pose):
print "get_type ERROR\n" * 5
errors += 1
continue
print from_pose
print "-" * 20
print back_pose
print to_pose
print "\n\nErrors: %d" % errors

if __name__ == "__main__":
Expand Down

0 comments on commit 460834d

Please sign in to comment.