You are testing a collection of mathematical functions, one of which calculates the area under a curve as described by another function.
assert(myIntegrate(lambda x: x*x, 0, 3) [0] == 9)
Which kind of test would the above line exemplify?
You are testing a collection of mathematical functions, one of which calculates the area under a curve as described by another function.
assert(myIntegrate(lambda x: x*x, 0, 3) [0] == 9)
Which kind of test would the above line exemplify?
The test checks a single function, myIntegrate, and verifies its output for a specific input, lambda x: x*x, within a specified range from 0 to 3. This is characteristic of a unit test, which is designed to test individual components or functions in isolation to ensure they perform as expected.
I think it should be Functional Test
A is correct
Answer is A, unit test
A. Unit