Skip to content

Commit

Permalink
Update test_direct_api.py -> go back to complex test
Browse files Browse the repository at this point in the history
now that rounding is in location creation
  • Loading branch information
jdegenstein authored Jan 29, 2024
1 parent d249a9d commit 2a3a175
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_direct_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1624,10 +1624,10 @@ def test_eq(self):
self.assertNotEqual(loc, diff_orientation)

def test_neg(self):
loc = Location((1, 2, 3), (0, 0, 60))
loc = Location((1, 2, 3), (0, 35, 127))
n_loc = -loc
self.assertVectorAlmostEquals(n_loc.position, (1, 2, 3), 5)
self.assertOrientationVectorAlmostEquals(n_loc.orientation, (180, 180, -60), 5, msg=f"{n_loc.orientation=}, 2nd=(180, 180, -60)")
self.assertOrientationVectorAlmostEquals(n_loc.orientation, (180, -35, -127), 5, msg=f"{n_loc.orientation=}, 2nd=(180, -35, -127)")

def test_mult_iterable(self):
locs = Location((1, 2, 0)) * GridLocations(4, 4, 2, 1)
Expand Down

0 comments on commit 2a3a175

Please sign in to comment.