mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-21 01:46:28 +08:00
judge: testlib: set FAIL to WRONG_ANSWER
This commit is contained in:
1 parent
437df2391a
commit
27219776bf
2 files changed
+1
-3
No files matched your search
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "@hydrooj/hydrojudge",
|
"name": "@hydrooj/hydrojudge",
|
||||||
"bin": "bin/hydrojudge.js",
|
"bin": "bin/hydrojudge.js",
|
||||||
"version": "2.10.9",
|
"version": "2.10.10",
|
||||||
"main": "package.json",
|
"main": "package.json",
|
||||||
"author": "undefined <i@undefined.moe>",
|
"author": "undefined <i@undefined.moe>",
|
||||||
"repository": "https://github.com/hydro-dev/Hydro.git",
|
"repository": "https://github.com/hydro-dev/Hydro.git",
|
||||||
|
|||||||
@@ -26,8 +26,6 @@ export function parse(output: string, fullscore: number) {
|
|||||||
message = `partially correct ${output.split('points ')[1] || ''}`;
|
message = `partially correct ${output.split('points ')[1] || ''}`;
|
||||||
score = Math.floor(fullscore * (p / 100));
|
score = Math.floor(fullscore * (p / 100));
|
||||||
}
|
}
|
||||||
} else if (output.startsWith('FAIL ')) {
|
|
||||||
status = STATUS.STATUS_SYSTEM_ERROR;
|
|
||||||
}
|
}
|
||||||
return { status, score, message };
|
return { status, score, message };
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user