Skip to content

Commit 9b84008

Browse files
committed
Slightly modified build script
1 parent ac27ced commit 9b84008

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_all_solutions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_all_solutions(directory_name, compiler_name, expected_solutions):
3939
print("Running: " + compile_command)
4040

4141
if (subprocess.call(compile_command.split(), stdout = subprocess.DEVNULL, stderr = subprocess.STDOUT) != 0): # Compile the current file
42-
print(f"Result: {color_string(colors.FAIL, 'FAILURE')}: File was unable to be compiled!")
42+
print(f"\nResult: {color_string(colors.FAIL, 'FAILURE')}: File was unable to be compiled!")
4343
else:
4444
current_output_string = subprocess.check_output(['./a.out']).decode('utf-8') # Run the executable and capture the output
4545
if current_output_string.strip().isdigit():
@@ -55,7 +55,7 @@ def test_all_solutions(directory_name, compiler_name, expected_solutions):
5555
else:
5656
print(f"{color_string(colors.FAIL, 'FAILURE')}: Current output {str(current_output)} does not match expected output {str(solution)}!")
5757
else:
58-
print(f"Result: {color_string(colors.FAIL, 'FAILURE')}: Expected integer but found: ")
58+
print(f"\nResult: {color_string(colors.FAIL, 'FAILURE')}: Expected integer but found: ")
5959
print(current_output_string)
6060

6161
print(color_string(colors.BOLD, "==============="))

0 commit comments

Comments
 (0)