mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +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
@@ -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 };
|
||||
}
|
||||
Reference in new issue
Block a user