This is a simple tool designed for algorithmic testing. It supports multiple programming languages, enforces time and memory limits, and compares actual output with expected output for correctness.
Clone the repository:
git clone https://github.com/geokoko/AlgoGrader.git
cd AlgoGraderTo run the program, use the following command:
python3 main.py <program_path> [<time_limit>] [<memory_limit>] program_path: The path to the program you want to test.
Optional arguments:
time_limit: The time limit in seconds. Default is 12 seconds.memory_limit: The memory limit in megabytes. Default is 128 megabytes.
- Input files should be named 
input<i>.txt, whereiis the test case number. - Expected output files should be named 
output<i>.txt, whereiis the test case number. - Actual results are stored in the 
actual_results/directory automatically during execution. - Input and expected output files should be stored in the 
test_cases/<program_name>_testsdirectory, where program name is the name of the program you are testing. (The filename without the language extension)