mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Fixed bugz0r.
This commit is contained in:
parent
2022839a96
commit
6a2f9010b8
@ -35,6 +35,8 @@ Various math-related commands.
|
|||||||
|
|
||||||
__revision__ = "$Id$"
|
__revision__ = "$Id$"
|
||||||
|
|
||||||
|
from __future__ import division
|
||||||
|
|
||||||
import plugins
|
import plugins
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
@ -55,6 +55,7 @@ class MathTestCase(PluginTestCase, PluginDocumentation):
|
|||||||
def testICalc(self):
|
def testICalc(self):
|
||||||
self.assertResponse('icalc 1^1', '0')
|
self.assertResponse('icalc 1^1', '0')
|
||||||
self.assertResponse('icalc 10**24', '1' + '0'*24)
|
self.assertResponse('icalc 10**24', '1' + '0'*24)
|
||||||
|
self.assertRegexp('icalc 49/6', '8.16')
|
||||||
|
|
||||||
def testCalcNoNameError(self):
|
def testCalcNoNameError(self):
|
||||||
self.assertNotRegexp('calc foobar(x)', 'NameError')
|
self.assertNotRegexp('calc foobar(x)', 'NameError')
|
||||||
|
Loading…
Reference in New Issue
Block a user