-
Notifications
You must be signed in to change notification settings - Fork 13
Tests
Sankha Narayan Guria edited this page Jul 14, 2014
·
4 revisions
The judge uses a test suite written from scratch. To run the tests use the following command:
npm test
To write new test, this is what you need to do:
- Put your relevant source file in
tests/src
folder. - Write the actual test. This will pass the relevant data to the judge and evaluate if it returned the correct result or not. Take a look at
testC.js
for an example. - Add the entry to
tests.json
. This will enable the test driver to pickup the test automatically during the run of the test suite.