Skip to content

Commit a9f0769

Browse files
committed
Added tests
1 parent c8197bc commit a9f0769

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_pose3d.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,12 @@ def test_constructor(self):
833833
self.assertEqual(T.A.shape, (4,4))
834834
nt.assert_equal(T.t, [1, 2, 0])
835835

836+
# Bad number of arguments
837+
with self.assertRaises(ValueError):
838+
T = SE3(1.0, 0.0)
839+
with self.assertRaises(ValueError):
840+
T = SE3(1.0, 0.0, 0.0, 0.0)
841+
836842
def test_shape(self):
837843
a = SE3()
838844
self.assertEqual(a._A.shape, a.shape)

0 commit comments

Comments
 (0)