You can use this program to quickly add test cases related to questions in the tc (test cases) folder. You can also test these test cases using mini-judge.
tca.py
is a Python program designed to simplify the process of adding test cases for competitive programming problems. It helps you quickly organize and create test case folders and files, streamlining the workflow for problem-solving.
- Quick Test Case Setup: Automatically generate folders and files for test cases.
- Customizable Naming: Flexible options for naming and organizing test cases.
- Easy-to-Use Switches: Various switches to control behavior and add specific features.
- Ensure you have Python 3 installed on your system.
- Clone or download this repository:
git clone https://github.com/ctrl-alt-Defeat-icpc/mini-tca.git cd mini-tca
- Run the program:
python3 tca.py <switch>
Here's how you can use tca.py
:
switch | description |
---|---|
+ |
Create a series of folders for test cases. |
. |
Create test cases for all problems |
<name> |
Create test cases for a specific problem |
How About domjudge.py file?
This is probably the simplest executable you'll ever see. Just copy the files in the format samples-x.zip
, where x
is the name of problem, into the tc
folder, and then run the domjudge.py
file.
This program will extract the zip files, give the folder a shortened name, and then delete the zip file.
This project is licensed under the MIT License, so feel free to use and modify it as you like. I believe in the power of collaboration, and I'm always excited to see others improve or expand this project.
Got ideas or suggestions? Found a bug? Open an issue or send a pull request. Let's make this tool better together! 🚀