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;
status = TestcaseResultType.JudgementFailed;
message = `Interactor returned a non-number score ${scoreString}`;
} else if (score === -1) {
} else if (rawScore === -1) {
status = TestcaseResultType.InvalidInteraction;
} else {
score = rawScore;

Loading…
Cancel
Save