|
|
@ -46,7 +46,7 @@ async function runSpj(spjBinDir: string, spjLanguage: Language): Promise<SpjResu |
|
|
|
score = Number(scoreString); |
|
|
|
score = Number(scoreString); |
|
|
|
const messageString = await readFileLength(pathLib.join(spjWorkingDir, messageFileName), Cfg.stderrDisplayLimit); |
|
|
|
const messageString = await readFileLength(pathLib.join(spjWorkingDir, messageFileName), Cfg.stderrDisplayLimit); |
|
|
|
|
|
|
|
|
|
|
|
if ((!scoreString) || score === NaN || score < 0 || score > spjFullScore) { |
|
|
|
if ((!scoreString) || isNaN(score) || score < 0 || score > spjFullScore) { |
|
|
|
return { |
|
|
|
return { |
|
|
|
status: TestcaseResultType.JudgementFailed, |
|
|
|
status: TestcaseResultType.JudgementFailed, |
|
|
|
message: `Special Judge returned an unrecoginzed score: ${scoreString}.`, |
|
|
|
message: `Special Judge returned an unrecoginzed score: ${scoreString}.`, |
|
|
|