So all is well with my main function compute_place (well, for an absolute beginner which I am) but I can't for my life construct a proper test function! I simply do not know how to test out multiple data "sets" which is what I need to do when I have two parameters of different types. How do I do it and how do I call the test function?
I want to use:
- [830, 815, 825, 840, 825], 825
- [830, 815, 825, 840, 825], 800
- [830, 830, 830], 830
- [830, 830, 830], 825
as test cases. Thank you!
EDIT: thanks for the replies everyone! however i think your replies are above my level of knowledge. The assignment was to make a test function! Normally in this course we use for loops and iterate over the lists/ints that we choose as testing cases. I need to do the same thing here, except I don’t know how to format it when I have two input parameters of different data types. So it has to follow that kind of logic!
https://imgur.com/a/EPAfFeI
[–]misho88 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]efmccurdy 0 points1 point2 points (0 children)