Question: you are required to implement the following functions though of...
You are required to implement the following functions, though of course you may write other functions to help you complete the task.
The functions work on a list of test cases (I’ll refer to the whole list as a test suite)
Each test case is a tuple of 3 elements
the function to call
the list of parameters to pass to the function
the expected result
Returns True if parameter is a correctly formatted test case.
To check the tuple and list types, use isinstance(obj, type) – try this out in the interpreter
To check if the function argument has the right type, use callable(obj). For example, callable(print) returns True.
Returns True if parameter is a correctly formatted test suite. The parameter must be a list, and each element must be a correctly formatted test case.
Return True if test passes, False if test is not correctly formatted or does not return expected value
Run list of tests and return a list of [number of tests passed, number of tests failed]