Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 7088d4c

Browse files
committed
Fix: More tolerant check for passing tests.
1 parent c31d535 commit 7088d4c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bookserver/internal/common_builder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,9 @@ def check_sim_out(out_list, verification_code):
175175
# Get lines, with fallback if they don't exist.
176176
second_to_last_line = sl[-2] if len(sl) >= 2 else ""
177177
last_line = sl[-1] if len(sl) >= 1 else ""
178-
return (second_to_last_line == "Correct.") and (last_line == str(verification_code))
178+
return (second_to_last_line == "Correct.") and (
179+
last_line.strip() == str(verification_code)
180+
)
179181

180182

181183
# Run MDB

0 commit comments

Comments
 (0)