Made by me with test cases from Felix.
To run this script, follow these instructions:
- Create a file called
test.pyin the same directory as your calculation script and paste the contents oftest.pyfrom below. - Create a file called
tests.jsonin the same directory as your calculation script and paste the contents oftests.jsonfrom below.
Now to run the tests, go to the directory where all these files are located and open a terminal and run the following: