Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- test = 1
- while True:
- os.system("python gen.py > input")
- os.system("test.exe < input > output")
- os.system("slow.exe < input > correct")
- output = [i.strip() for i in open("output").readlines()]
- correct = [i.strip() for i in open("correct").readlines()]
- if output != correct:
- print("Error at test", test)
- break
- print("Test", test, "is OK")
- print("-------------------")
- test += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement