/hw09-tester

Unofficial test cases for UW Madison CS577 SP22 HW09: Network Flow

Primary LanguagePythonMIT LicenseMIT

hw09-tester

Additional tests for CS577 Spring 2022 HW09: Network Flow

Changes

V1.2

  • Use double quotes because f-string is using single quotes

V1.1

  • Fix a string not being in quotes

V1.0

  • Initial commit

Downloading

Option 1: Clone the entire repo

  • Run $ git clone https://github.com/CS577-testers-SP22/hw09-tester/
  • Copy your code and Makefile into the repo

Option 2: Download specific files

Usage

The contents of your directory should look like this:

.
├── Makefile
├── source_code
├── tests.json
└── hw09_test.py

where source_code is the file(s) you'd submit to Gradescope with your Makefile. Mine is FF.c, but you might have hw09.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 hw09_test.py

tqdm is used to track progress. If you don't have it installed, you should do $ pip install tqdm as it looks better than a simple progress bar implementations.

Additional Information

  • 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.

Disclaimer

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 in the Discord to join the GitHub organization.