From 656b71ba2ba109ebfd9628fe32d6ff3b943cbb2e Mon Sep 17 00:00:00 2001 From: t123yh Date: Mon, 28 Aug 2017 21:43:10 +0800 Subject: [PATCH] Fix score detection bug. --- src/runner/judge.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runner/judge.ts b/src/runner/judge.ts index c01bfe8..a051101 100644 --- a/src/runner/judge.ts +++ b/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;