Fix typo again

multiline-output
drunkendog 2023-09-12 14:16:42 +01:00
parent e75c0fcdb2
commit bbd24d8c4c
1 changed files with 1 additions and 1 deletions

View File

@ -27,5 +27,5 @@ for file_name in glob.glob("*.c", recursive=False):
for x in to_run: for x in to_run:
x_split = x.split("\n") x_split = x.split("\n")
return_data = subprocess.run(["./a.out"], input=x_split[0].rstrip().encode(), capture_output=True).stdout.decode().rstrip() return_data = subprocess.run(["./a.out"], input=x_split[0].rstrip().encode(), capture_output=True).stdout.decode().rstrip()
print(f"\u001b[{31 + int(return_data == x_split[1].rstrip())}m{return_data}\u001b[0m", x[1]) print(f"\u001b[{31 + int(return_data == x_split[1].rstrip())}m{return_data}\u001b[0m", x_split[1])
os.remove("a.out") os.remove("a.out")