Additional tests for CS577 Spring 2022 HW04: More Greedy
- Initial commit
- Run
$ git clone https://github.com/CS577-testers-SP22/hw04-tester/
- Copy your code and
Makefile
into the repo
- Download tests.json and hw04-test.py into the directory that contains your
Makefile
and code.
- There are a set of additional tests to check if your code runs efficiently / may timeout when running on Gradescope. If you want to run these, download timeout.json to the same directory as
tests.json
.
The contents of your directory should look like this:
.
├── Makefile
├── source_code
├── tests.json
├── timeout.json (optional)
└── hw04-test.py
where source_code
is the file(s) you'd submit to Gradescope with your Makefile
. Mine is Cache.cpp
, but you might have hw04.py
, Main.java
, or something else.
You'll need to be able to run your code using $ make build && make run
in the directory containing your code and the test files.
To run the tests, do
$ python3 hw04-test.py
tqdm
is used to track progress. If you don't have it installed, you should do $ pip install tqdm
.
- If you want to see how the tests were generated, or generate your own, see generate_tests.py
- These are not the actual tests Gradescope uses. I just generated random inputs that meet the specified requirements for input, and made sure the outputs matched for a few different implementations and languages, each that passed all Gradescope tests.
These tests are not endorsed or created by anyone working in an official capacity with UW Madison or any staff for CS577. The tests are make by students, for students.
By running any of the code in this repository, you are executing code you downloaded from the internet. Back up your files and take a look at what you are running first.
If you have comments / questions / suggestions, create an issue or ask in the Discord at https://discord.gg/CTFKYaUePf. If you want to contribute, submit a pull request or ask to join the organization in Discord.