The current checker works for Python, PHP and JavaScript (Node.js) only but can be extended for any language
Note that you must have the interpreter for each language already installed
For testing purposes the "testing" directory was included and contains the following
-
Test cases
- testcase.py - algorithm for Python
- testcase.php - algorithm for PHP
- testcase.js - algorithm for JavaScript
-
Tests
- tests.json - contains 2 tests for the test case files
-
Results
- results.json - contains the results (NOTICE: the first result is correct but the second is incorrect for testing purposes)
python tester.py -h
python tester.py --algo testing/testcase.py --tests testing/tests.json --results testing/results.json --language python
python tester.py