judge: testlib: set FAIL to WRONG_ANSWER

This commit is contained in:
undefined committed 2021-08-15 20:14:15 +08:00
1 parent 437df2391a
commit 27219776bf
2 files changed
+1 -3

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@hydrooj/hydrojudge",
"bin": "bin/hydrojudge.js",
"version": "2.10.9",
"version": "2.10.10",
"main": "package.json",
"author": "undefined <i@undefined.moe>",
"repository": "https://github.com/hydro-dev/Hydro.git",
-2
View File
@@ -26,8 +26,6 @@ export function parse(output: string, fullscore: number) {
message = `partially correct ${output.split('points ')[1] || ''}`;
score = Math.floor(fullscore * (p / 100));
}
} else if (output.startsWith('FAIL ')) {
status = STATUS.STATUS_SYSTEM_ERROR;
}
return { status, score, message };
}