Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running executables as solutions fails #29

Open
vidarw opened this issue Jul 2, 2015 · 1 comment
Open

Running executables as solutions fails #29

vidarw opened this issue Jul 2, 2015 · 1 comment

Comments

@vidarw
Copy link

vidarw commented Jul 2, 2015

Should it be possible to allow the workshopper to execute binaries and/or other scripts than node scripts? Trying to make a language independent course/workshop. Verification of binaries currently this fails in Windows.

C:\Projects\Git\getajob>learnyounode verify helloworld.exe

C:\Projects\Git\getajob\helloworld.exe:1
(function (exports, require, module, __filename, __dirname) { MZ?
                                                                ^
SyntaxError: Unexpected token ILLEGAL
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3

Your submission results compared to the expected:

                 ACTUAL                                 EXPECTED
────────────────────────────────────────────────────────────────────────────────

   ""                                  !=    "HELLO WORLD"
                                       !=    ""

────────────────────────────────────────────────────────────────────────────────

? Submission results did not match expected!

# FAIL

Your solution to HELLO WORLD didn't pass. Try again!


C:\Projects\Git\getajob>
@rvagg
Copy link
Contributor

rvagg commented Jul 3, 2015

It's not currently designed to work like that but you should be able to write your own exercises that are verified by whatever means you can dream up. You'll just have to take execute out of the equation and put something in its place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants