def main(): code_checker = CodeCheck("Go.py", 15) code_checker1 = cc1("Go.py", 15) code_checker2 = cc2("Go.py", 15) code_checker3 = cc3("Go.py", 15) if not code_checker.check_code(): print("not pass") print(code_checker.errormsg) else: print('pass') if not code_checker1.check_code(): print("not pass") print(code_checker.errormsg) else: print('pass') if not code_checker2.check_code(): print("not pass") print(code_checker.errormsg) else: print('pass') if not code_checker3.check_code(): print("not pass") print(code_checker.errormsg) else: print('pass')
def main(): code_checker = CodeCheck("code_template.py", 15) if not code_checker.check_code(): print(code_checker.errormsg) print(code_checker.errorcase) else: print('pass')
def main(): code_checker = CodeCheck( "C:\\Users\\10578\\PycharmProjects\\AICourse\\Gobang\\GobangAINext.py", 15) if not code_checker.check_code(): print(code_checker.errormsg) else: print('pass')
def main(): code_checker = CodeCheck("wdnmd.py", 15) if not code_checker.check_code(): print(code_checker.errormsg) else: print('pass')
def main(): code_checker = CodeCheck(r"F:\data_analysis\AI_project\gobang1.6.py", 15) if not code_checker.check_code(): print(code_checker.errormsg) else: print('pass')
def main(): code_checker = CodeCheck('./gomokuAC.py', 15) if not code_checker.check_code(): print(code_checker.errormsg) else: print('pass')
def main(): code_checker = CodeCheck("11510280_Gomoku.py", 15) if not code_checker.check_code(): print(code_checker.errormsg) else: print('pass')
def main(): code_checker = CodeCheck('./gomoku.py', 15) if not code_checker.check_code(): print(code_checker.errormsg)
def main(): code_checker = CodeCheck('D:\PycharmProject\Gobang\main1.py', 15) if not code_checker.check_code(): print(code_checker.errormsg) else: print('pass')
#!/usr/bin/env python3 import sys from code_check import CodeCheck if __name__ == '__main__': path = sys.argv[1] userlist = sys.argv[2] passlist = sys.argv[3] f_user = open(userlist, 'r') f_pass = open(passlist, 'w') for sid in f_user.readlines(): sid = sid.strip('.py\n') is_pass = False code_checker = CodeCheck("{}/{}.py".format(path, sid), 15) if not code_checker.check_code(): info = code_checker.errormsg else: f_pass.writelines("%s\n" % sid) info = 'Upload success, usability test pass.' is_pass = True