Exemplo n.º 1
0
 def test_many_ops(self):
     self.assertEqual(call(self.path, '2 * 2 + 2'), 6.0)
Exemplo n.º 2
0
 def test_div_float(self):
     self.assertEqual(call(self.path, '3 / 4'), 0.75)
Exemplo n.º 3
0
 def test_div(self):
     self.assertEqual(call(self.path, '8 / 4'), 2.0)
Exemplo n.º 4
0
 def test_mul(self):
     self.assertEqual(call(self.path, '4 * 3'), 12.0)
Exemplo n.º 5
0
 def test_sup(self):
     self.assertEqual(call(self.path, '3 - 2'), 1.0)
Exemplo n.º 6
0
 def test_sum(self):
     self.assertEqual(call(self.path, '1 + 1'), 2.0)