Skip to content
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

Writing new tests

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.
Clone this wiki locally