Пример #1
0
 def split_expression(self, expression):
     return expression_factory(expression, self.theme, self.report)
Пример #2
0
 def test_simple_call(self):
     assert type(expression_factory("whatever()")) == Call
Пример #3
0
 def test_simple_print(self):
     assert type(expression_factory("OUT = 3")) == Print
Пример #4
0
 def test_simple_comparison(self):
     assert type(expression_factory("4 == 3")) == Comparison
Пример #5
0
 def test_simple_assignment(self):
     assert type(expression_factory("a = 3")) == Assignment