Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
obouchaara committed Aug 19, 2024
1 parent c8fd4e6 commit 6cb3056
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_get_cylindrical_coord(self):
cylindrical_coord, subs={a: 3, b: 5}
)
self.assertEqual(eval_coord[0], 3.)
self.assertAlmostEqual(eval_coord[1], 1.5707963267949)
self.assertAlmostEqual(eval_coord[1], 1.5707963267949, places=7)
self.assertEqual(eval_coord[2], 5.)

def test_get_spherical_coord(self):
Expand All @@ -169,8 +169,8 @@ def test_get_spherical_coord(self):

eval_coord = SymbolicCoordSystem.coord_eval(spherical_coord, subs={a: 1})
self.assertEqual(eval_coord[0], 1.)
self.assertAlmostEqual(eval_coord[1], 1.5707963267949)
self.assertAlmostEqual(eval_coord[2], 1.5707963267949)
self.assertAlmostEqual(eval_coord[1], 1.5707963267949, places=7)
self.assertAlmostEqual(eval_coord[2], 1.5707963267949, places=7)


class TestSymbolicCylindricalCoordSystem(unittest.TestCase):
Expand Down Expand Up @@ -208,7 +208,7 @@ def test_get_cartesian_coords(self):

eval_coord = SymbolicCoordSystem.coord_eval(cartesian_coord, subs={a: 1, b: 5})
self.assertEqual(eval_coord[0], 1.)
self.assertAlmostEqual(eval_coord[1], 1.73205080756888)
self.assertAlmostEqual(eval_coord[1], 1.73205080756888, places=7)
self.assertEqual(eval_coord[2], 5.)


Expand Down

0 comments on commit 6cb3056

Please sign in to comment.