예제 #1
0
 def test_parentheses(self):
     t = fixoperator("(",[])
     s = '*('
     self.assertEqual(t, s, 'problem with parentheses')
예제 #2
0
 def test_function_call(self):
     t = fixoperator("(",[('F', '*', 'log')])
     s = '('
     self.assertEqual(t, s, 'problem with function call')
예제 #3
0
 def test_implicit_multiplication(self):
     t = fixoperator(" ",[])
     s = ' *'
     self.assertEqual(t, s, 'problem with implied multiplication')