fix(diff): bugs on diff stdin and numerics #16

Merged
张泊明518370910136 merged 22 commits from fix/diff into master 2025-05-24 02:45:39 +08:00
5 changed files with 4 additions and 0 deletions
Showing only changes of commit 2dbfa986fa - Show all commits

View File

@ -1,3 +1,4 @@
import os
import re
import shlex
from functools import partial
@ -259,4 +260,7 @@ def get_testcases(
testcases_path.relative_to((task_root / task_path).parent)
).removesuffix(".in")
)
assert os.path.exists(
jon-lee marked this conversation as resolved Outdated

No. Just do not append it to the return value and log a warning.

No. Just do not append it to the return value and log a warning.

we can probably move some redundant functions like get_testcaes into a utils.py as file llines already bit large

we can probably move some redundant functions like `get_testcaes` into a `utils.py` as file llines already bit large

leave it here now. we have not reused the logic.

leave it here now. we have not reused the logic.
str(testcases_path).removesuffix(".in") + ".out"
), f"{testcases_path} does not have a corresponding *.out file!"
return testcases

View File

View File

View File

View File