feat: add verification for path *.out
This commit is contained in:
parent
c3f2b21732
commit
2dbfa986fa
|
@ -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
|
||||||
|
|
0
tests/convert/diff/case0.out
Normal file
0
tests/convert/diff/case0.out
Normal file
0
tests/convert/diff/case1.out
Normal file
0
tests/convert/diff/case1.out
Normal file
0
tests/convert/diff/case2.out
Normal file
0
tests/convert/diff/case2.out
Normal file
0
tests/convert/diff/case3.out
Normal file
0
tests/convert/diff/case3.out
Normal file
Loading…
Reference in New Issue
Block a user