feat: add verification for path *.out
All checks were successful
build / build (pull_request) Successful in 1m33s
build / build (push) Successful in 1m48s

This commit is contained in:
李衍志523370910113 2025-05-23 20:26:36 +08:00
parent c3f2b21732
commit 2dbfa986fa
5 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,4 @@
import os
import re import re
import shlex import shlex
from functools import partial from functools import partial
@ -259,4 +260,7 @@ def get_testcases(
testcases_path.relative_to((task_root / task_path).parent) testcases_path.relative_to((task_root / task_path).parent)
).removesuffix(".in") ).removesuffix(".in")
) )
assert os.path.exists(
str(testcases_path).removesuffix(".in") + ".out"
), f"{testcases_path} does not have a corresponding *.out file!"
return testcases return testcases

View File

View File

View File

View File