Fixed bugz0r.

This commit is contained in:
Jeremy Fincher 2004-02-07 18:21:46 +00:00
parent 2022839a96
commit 6a2f9010b8
2 changed files with 3 additions and 0 deletions

View File

@ -35,6 +35,8 @@ Various math-related commands.
__revision__ = "$Id$"
from __future__ import division
import plugins
import re

View File

@ -55,6 +55,7 @@ class MathTestCase(PluginTestCase, PluginDocumentation):
def testICalc(self):
self.assertResponse('icalc 1^1', '0')
self.assertResponse('icalc 10**24', '1' + '0'*24)
self.assertRegexp('icalc 49/6', '8.16')
def testCalcNoNameError(self):
self.assertNotRegexp('calc foobar(x)', 'NameError')