NikolayIT / OpenJudgeSystem

An open source system for online algorithm competitions for Windows, written in ASP.NET MVC
http://bgcoder.com
GNU General Public License v2.0
510 stars 93 forks source link

NodeJsPreprocessExecuteAndCheckExecutionStrategy has issues with `%%` on the output #534

Open cuklev opened 8 years ago

cuklev commented 8 years ago

Lets say I submit console.log('%%');. Somehow this turns to a single % when my output is compared to the expected output leading to incorrect answers, which are actually correct.

The only thing I can think of that behaves like this is a Windows Batch file. That would mean that the output of the node process is interpreted as batch. Very illogical.

ivaylokenov commented 8 years ago

The code is here. Open a pull request and fix it in a more "logical" manner. :+1: