Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Math: Fix tests to allow higher precision.

  • Loading branch information...
commit 0ff58db4f0f931055e041d3fb676d24b26525afc 1 parent ea63da3
@ProgVal authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugins/Math/test.py
View
4 plugins/Math/test.py
@@ -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)')
Please sign in to comment.
Something went wrong with that request. Please try again.