Browse Source

Fix score detection bug.

master
t123yh 7 years ago
parent
commit
656b71ba2b
  1. 2
      src/runner/judge.ts

2
src/runner/judge.ts

@ -361,7 +361,7 @@ export async function judgeInteraction(task: InteractionRunTask)
score = null; score = null;
status = TestcaseResultType.JudgementFailed; status = TestcaseResultType.JudgementFailed;
message = `Interactor returned a non-number score ${scoreString}`; message = `Interactor returned a non-number score ${scoreString}`;
} else if (score === -1) { } else if (rawScore === -1) {
status = TestcaseResultType.InvalidInteraction; status = TestcaseResultType.InvalidInteraction;
} else { } else {
score = rawScore; score = rawScore;

Loading…
Cancel
Save