def test3(self): list_ = process_unary_operations([ '-', '-', 13.0, ]) self.assertEqual(list_, [13.0])
def test12(self): list_ = process_unary_operations([ 1.0, '*', '+', 13.0, ]) self.assertEqual(list_, [1.0, '*', 13.0])
def test32(self): list_ = process_unary_operations([ 10.0, '*', 'e', '^', 0.0, '*', 'log10', '(', 0.4, '-', 5.0, '/', '-', 0.1, '-', 10.0, ')', '-', '-', 'abs', '(', '-', 53.0, '/', 10.0, ')', '+', '-', 5.0 ]) self.assertEqual(list_, [ 10.0, '*', 'e', '^', 0.0, '*', 'log10', '(', 0.4, '-', 5.0, '/', '-', 0.1, '-', 10.0, ')', '+', 'abs', '(', '-', 53.0, '/', 10.0, ')', '-', 5.0 ])
def test31(self): list_ = process_unary_operations([ 'sin', '(', '-', 'cos', '(', '-', 'sin', '(', 3.0, ')', '-', 'cos', '(', '-', 'sin', '(', '-', 3.0, '*', 5.0, ')', '-', 'sin', '(', 'cos', '(', 'log10', '(', 43.0, ')', ')', ')', ')', '+', 'cos', '(', 'sin', '(', 'sin', '(', 34.0, '-', 2.0, '^', 2.0, ')', ')', ')', ')', '-', '-', 'cos', '(', 1.0, ')', '-', '-', 'cos', '(', 0.0, ')', '^', 3.0, ')' ]) self.assertEqual(list_, [ 'sin', '(', '-', 'cos', '(', '-', 'sin', '(', 3.0, ')', '-', 'cos', '(', '-', 'sin', '(', '-', 3.0, '*', 5.0, ')', '-', 'sin', '(', 'cos', '(', 'log10', '(', 43.0, ')', ')', ')', ')', '+', 'cos', '(', 'sin', '(', 'sin', '(', 34.0, '-', 2.0, '^', 2.0, ')', ')', ')', ')', '+', 'cos', '(', 1.0, ')', '+', 'cos', '(', 0.0, ')', '^', 3.0, ')' ])
def test8(self): list_ = process_unary_operations(['-', '(', '-', '-', 13.0, ')']) self.assertEqual(list_, ['-', '(', 13.0, ')'])
def test30(self): list_ = process_unary_operations( ['-', '+', '-', '-', '-', '+', '-', 1.0]) self.assertEqual(list_, ['-', 1.0])
def test29(self): list_ = process_unary_operations([1.0, '-', '-', '-', 1.0]) self.assertEqual(list_, [1.0, '-', 1.0])
def test27(self): list_ = process_unary_operations([ '+', 1.0, ]) self.assertEqual(list_, [1.0])
def test25(self): list_ = process_unary_operations( ['+', '+', '(', '+', '(', '+', '+', 1.0, ')', ')']) self.assertEqual(list_, ['(', '(', 1.0, ')', ')'])