Compare commits

..

1 Commits

Author SHA1 Message Date
9bd3001c85
chore: simpler models
Some checks failed
build / build (pull_request) Failing after 3m16s
build / build (push) Failing after 3m19s
build / trigger-build-image (pull_request) Has been skipped
build / trigger-build-image (push) Has been skipped
2025-06-21 12:21:04 -04:00
2 changed files with 3 additions and 2 deletions

View File

@ -149,6 +149,7 @@ class Case(BaseModel):
True, validation_alias=AliasChoices("copy-in-cwd", "copy_in_cwd")
)
limit: Limit = Limit()
score: int = 0
diff: ParserDiff = ParserDiff()

View File

@ -276,7 +276,7 @@ def fix_diff(
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]:
testcases = set()
for testcases_path in (task_root / task_path).parent.glob("**/*.in"):
@ -306,7 +306,7 @@ def get_unspecified_cases(
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]]:
case_stdout_name = case.out_ if case.out_ else f"{case_name}.out"
stdin: result.Stdin = result.MemoryFile(content="")