-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes in cmake to run python tests with colcon
Signed-off-by: Marcos Wagner <[email protected]>
- Loading branch information
1 parent
5fa9264
commit bca2353
Showing
3 changed files
with
34 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import unittest | ||
import ignition.math | ||
class TestVector3(unittest.TestCase): | ||
|
||
def test_construction(self): | ||
angle1 = ignition.math.Angle() | ||
self.assertEqual(angle1.Radian(), 0.0) | ||
v1 = ignition.math.Vector3d(0, 0, 0) | ||
self.assertEqual(v1, ignition.math.Vector3d.Zero) | ||
v2 = ignition.math.Vector2d(1, 2) | ||
self.assertEqual(v2.X(), 1) | ||
self.assertEqual(v2.Y(), 2) | ||
|
||
if __name__ == '__main__': | ||
unittest.main() |