mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
judge: enhance readCases
This commit is contained in:
1 parent
34cd4d62e9
commit
b7f825f0a5
2 files changed
+2
-2
No files matched your search
@@ -219,7 +219,7 @@ export default async function readCases(folder: string, cfg: Record<string, any>
|
||||
let auto = !result.outputs?.length;
|
||||
if (!result.subtasks.length) {
|
||||
auto = !Math.sum(result.subtasks.map((subtask) => subtask.cases.length));
|
||||
}
|
||||
} else auto = false;
|
||||
if (auto) {
|
||||
const c = await readAutoCases(folder, args, config, result);
|
||||
result.subtasks = c.subtasks;
|
||||
|
||||
Reference in new issue
Block a user