Compare commits
1 Commits
a03c1d8cf5
...
9bd3001c85
Author | SHA1 | Date | |
---|---|---|---|
9bd3001c85 |
|
@ -149,6 +149,7 @@ class Case(BaseModel):
|
||||||
True, validation_alias=AliasChoices("copy-in-cwd", "copy_in_cwd")
|
True, validation_alias=AliasChoices("copy-in-cwd", "copy_in_cwd")
|
||||||
)
|
)
|
||||||
limit: Limit = Limit()
|
limit: Limit = Limit()
|
||||||
|
score: int = 0
|
||||||
diff: ParserDiff = ParserDiff()
|
diff: ParserDiff = ParserDiff()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -276,7 +276,7 @@ def fix_diff(
|
||||||
|
|
||||||
|
|
||||||
def get_unspecified_cases(
|
def get_unspecified_cases(
|
||||||
task_root: Path, task_path: Path, cases: Dict[str, task.Case]
|
task_root: Path, task_path: Path, cases: Dict[str, task.DictCase]
|
||||||
) -> List[str]:
|
) -> List[str]:
|
||||||
testcases = set()
|
testcases = set()
|
||||||
for testcases_path in (task_root / task_path).parent.glob("**/*.in"):
|
for testcases_path in (task_root / task_path).parent.glob("**/*.in"):
|
||||||
|
@ -306,7 +306,7 @@ def get_unspecified_cases(
|
||||||
|
|
||||||
|
|
||||||
def get_stdin_stdout(
|
def get_stdin_stdout(
|
||||||
task_root: Path, task_path: Path, case_name: str, case: task.Case
|
task_root: Path, task_path: Path, case_name: str, case: task.DictCase
|
||||||
) -> Tuple[result.Stdin, Optional[str]]:
|
) -> Tuple[result.Stdin, Optional[str]]:
|
||||||
case_stdout_name = case.out_ if case.out_ else f"{case_name}.out"
|
case_stdout_name = case.out_ if case.out_ else f"{case_name}.out"
|
||||||
stdin: result.Stdin = result.MemoryFile(content="")
|
stdin: result.Stdin = result.MemoryFile(content="")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user