You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on updating the levelmeup nodeschool to the latest workshopper I ran into an error where workshopper-exercise v1.1.0 doesn't pass arguments when you run the solution. v0.2.3 works though.
the error with v1.1.0
levelmeup run solutions/solution.js
ALL YOUR undefined ARE BELONG TO undefined.
The code that is run.
varexercise=require('workshopper-exercise')(),filecheck=require('workshopper-exercise/filecheck'),execute=require('workshopper-exercise/execute'),comparestdout=require('workshopper-exercise/comparestdout')// checks that the submission file actually existsexercise=filecheck(exercise)// execute the solution and submission in parallel with spawn()exercise=execute(exercise)// compare stdout of solution and submissionexercise=comparestdout(exercise)exercise.addSetup(function(mode,callback){// array for substitution in: 'ALL YOUR X ARE BELONG TO Y'constinputs=[['BASE','US'],['LANDS AND POSESSIONS','VIKINGS OF WESTERN NORWAY'],['INDEPENDENCE','KING HENRY VIII'],['INTERNET COMMUNICATIONS','THE NSA'],['TICKS','LIBUV']]vari=Math.floor(Math.random()*inputs.length)this.submissionArgs=this.solutionArgs=inputs[i]process.nextTick(callback)})module.exports=exercise
The text was updated successfully, but these errors were encountered:
While working on updating the levelmeup nodeschool to the latest workshopper I ran into an error where workshopper-exercise v1.1.0 doesn't pass arguments when you run the solution. v0.2.3 works though.
the error with v1.1.0
The code that is run.
The text was updated successfully, but these errors were encountered: