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

-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 };
}