calc: fix .c scientific output

This commit is contained in:
mutantmonkey
2012-06-05 18:24:43 -07:00
parent c702d7bc59
commit 2dbc8797e5
2 changed files with 9 additions and 1 deletions

View File

@@ -18,6 +18,12 @@ class TestCalc(unittest.TestCase):
self.phenny.say.assert_called_once_with('25')
def test_c_scientific(self):
input = Mock(group=lambda x: '2^64')
c(self.phenny, input)
self.phenny.say.assert_called_once_with('1.84467441 * 10^(19)')
def test_py(self):
input = Mock(group=lambda x: "'test'*3")
py(self.phenny, input)