I should commit the test, too.

This commit is contained in:
James Vega 2004-02-09 03:09:08 +00:00
parent 8623e98939
commit 1cffed1854

View File

@ -60,7 +60,12 @@ class MathTestCase(PluginTestCase, PluginDocumentation):
self.assertRegexp('base 4 4', 'Invalid <number>')
self.assertRegexp('base 10 12 A', 'Invalid <number>')
print
print "If we have not fixed a bug with Math.base, the following ",
print "tests will hang the test-suite."
self.assertRegexp('base 2 10 [base 10 2 -12]', '-12')
self.assertRegexp('base 16 2 [base 2 16 -110101]', '-110101')
def testCalc(self):
self.assertResponse('calc 5*0.06', str(5*0.06))
self.assertResponse('calc 2.0-7.0', str(2-7))