Exemplo n.º 1
0
 def generic_check(self,expr,desired):
     ast = parser.suite(expr)
     ast_list = ast.tolist()
     actual = blitz_tools.ast_to_blitz_expr(ast_list)
     actual = remove_whitespace(actual)
     desired = remove_whitespace(desired)
     assert_equal(actual,desired,expr)
Exemplo n.º 2
0
 def generic_check(self,suite_string,desired):
     ast_list = parser.suite(suite_string).tolist()
     slice_handler.transform_slices(ast_list)
     actual = ast_to_string(ast_list)
     # Remove white space from expressions so that equivalent
     # but differently formatted string will compare equally
     actual = remove_whitespace(actual)
     desired = remove_whitespace(desired)
     assert_equal(actual,desired,suite_string)
Exemplo n.º 3
0
 def generic_check(self, suite_string, desired):
     ast_list = parser.suite(suite_string).tolist()
     slice_handler.transform_slices(ast_list)
     actual = ast_to_string(ast_list)
     # Remove white space from expressions so that equivalent
     # but differently formatted string will compare equally
     actual = remove_whitespace(actual)
     desired = remove_whitespace(desired)
     assert_equal(actual, desired, suite_string)