Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sudeepdino008/parte
Testing tool for competitive programming
https://github.com/sudeepdino008/parte
Last synced: about 2 months ago
JSON representation
Testing tool for competitive programming
- Host: GitHub
- URL: https://github.com/sudeepdino008/parte
- Owner: sudeepdino008
- Created: 2014-10-12T18:38:26.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-12T19:13:02.000Z (about 10 years ago)
- Last Synced: 2023-04-01T14:26:13.483Z (almost 2 years ago)
- Language: Python
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# INTRODUCTION:
Parte is a testing tool for testing of programs written for various competitive programming sites like spoj, codechef etc.# IDEA/ABILITY:
Parte provides an iterface to generate random/custom inputs, run it on your code-to-be-tested and a brute-force/known-to-be-correct-solution and compare their outputs.
You can do rigorous testing of your program and if it fails at for some input, parte can report the correct output, the faulty output and the input.# LIMITATIONS:
Currently available only for c++ programs. Will be extending for all languages in future.# USAGE:
1. Put your to-be-tested file in code folder. Let it be "`X.cpp`".
2. Name your brute-force/known-to-be-correct solution in code folder and name it "`X_test.cpp`".
3. Write your input generator code in the `process()` function of `input/PartIn.py`.
4. Start the testing by running the `Parte.py` file in main folder. Look at the various options you need to provide by running:`python Parte.py -h`
5. To test `X.cpp` for 1 input, run: `python Parte.py -i X.cpp -r`
6. To test it for multiple inputs, run: `python Parte.py -i X.cpp -m 100`
7. You can choose more options as pointed out by: `python Parte.py -h`