def run_test(self, testcase): a = [] try: src = '\n'.join(testcase.input) build(src, 'main', True, test_temp_dir, True) except CompileError as e: a = normalize_error_messages(e.messages) assert_string_arrays_equal( testcase.output, a, 'Invalid type checker output ({}, line {})'.format( testcase.file, testcase.line))
def run_test(self, testcase): a = [] try: src = '\n'.join(testcase.input) build.build(src, 'main', target=build.TYPE_CHECK, test_builtins=True, alt_lib_path=test_temp_dir) except CompileError as e: a = normalize_error_messages(e.messages) assert_string_arrays_equal( testcase.output, a, 'Invalid type checker output ({}, line {})'.format( testcase.file, testcase.line))