Permalink
Browse files

Math: Fix tests to allow higher precision.

  • Loading branch information...
ProgVal committed Jan 11, 2013
1 parent ea63da3 commit 0ff58db4f0f931055e041d3fb676d24b26525afc
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/Math/test.py
View
@@ -100,8 +100,8 @@ def testCalc(self):
self.assertResponse('calc 2.0-7.0', str(2-7))
self.assertResponse('calc (-1)**.5', 'i')
self.assertResponse('calc e**(i*pi)+1', '0')
- self.assertResponse('calc (-5)**.5', '2.2360679775i')
- self.assertResponse('calc -((-5)**.5)', '-2.2360679775i')
+ self.assertRegexp('calc (-5)**.5', '2.236067977[0-9]+i')
+ self.assertRegexp('calc -((-5)**.5)', '-2.236067977[0-9]+i')
self.assertNotRegexp('calc [9, 5] + [9, 10]', 'TypeError')
self.assertError('calc [9, 5] + [9, 10]')
self.assertNotError('calc degrees(2)')

0 comments on commit 0ff58db

Please sign in to comment.