mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
judge.cases: 添加测试点数量配置不正确的提示
This commit is contained in:
1 parent
26206d36cc
commit
d662c55034
2 files changed
+2
-1
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@hydrooj/hydrojudge",
|
||||
"bin": "bin/hydrojudge.js",
|
||||
"version": "2.4.12",
|
||||
"version": "2.4.13",
|
||||
"os": [
|
||||
"linux"
|
||||
],
|
||||
|
||||
@@ -272,6 +272,7 @@ function convertIniConfig(ini: string) {
|
||||
const count = parseInt(f[0], 10);
|
||||
const res = { subtasks: [] };
|
||||
for (let i = 1; i <= count; i++) {
|
||||
if (!f[i] || !f[i].trim()) throw new FormatError('Testcada count incorrect.');
|
||||
const [input, output, time, score, memory] = f[i].split('|');
|
||||
const cur = {
|
||||
cases: [{ input: `input/${input.toLowerCase()}`, output: `output/${output.toLowerCase()}` }],
|
||||
|
||||
Reference in new issue
Block a user