Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
one more test
  • Loading branch information
jcao-bdai committed Jan 10, 2024
commit c234e6c7a2ad9591c4f3ce81f7b0ef03944dded6
7 changes: 5 additions & 2 deletions tests/test_pose3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1285,17 +1285,20 @@ def test_angle(self):
p1a.angdist(other=p2a, metric=metric),
p1a.angdist(other=p2b, metric=metric),
)
# not allowing angdist between mismatched types
# angdist is not implemented for mismatched types
with self.assertRaises(ValueError):
_ = r1.angdist(p1a)

# in general, the _op2 interface allows same type only
with self.assertRaises(ValueError):
_ = r1._op2(right=p1a, op=r1.angdist)

with self.assertRaises(ValueError):
_ = p1a._op2(right=r1, op=p1a.angdist)

# in general, the _op2 interface enforces an isinstance check.
with self.assertRaises(TypeError):
_ = r1._op2(right=(1, 0, 0), op=r1.angdist)

def test_functions(self):
# inv
# .T
Expand Down