Skip to content

fredtux/ProblemCheckerCLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithm checker

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

Usage

For testing purposes the "testing" directory was included and contains the following

  1. Test cases

    • testcase.py - algorithm for Python
    • testcase.php - algorithm for PHP
    • testcase.js - algorithm for JavaScript
  2. Tests

    • tests.json - contains 2 tests for the test case files
  3. Results

    • results.json - contains the results (NOTICE: the first result is correct but the second is incorrect for testing purposes)

0. Using help

python tester.py -h

1. Using arguments

python tester.py --algo testing/testcase.py --tests testing/tests.json --results testing/results.json --language python

2. Using questions

python tester.py

About

Algorithm checker in Python

Topics

Resources

License

Stars

Watchers

Forks