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