Write out the inputs and expected output of these six tests


Problem

Your job is to come up with tests for a function called line_intersect, which takes two lines as input and returns their intersection. More specifically:

• Lines are represented as pairs of distinct points, such as [[0.0, 0.0], [1.0, 3.0]].

• If the lines do not intersect, line_intersect returns None.

• If the lines intersect in one point, line_intersect returns the point of intersection, such as [0.5, 0.75].

• If the lines are coincident (that is, lie on top of one another), the function returns its first argument (that is, a line).

What are the six most informative test cases you can think of? (That is, if you were allowed to run only six tests, which would tell you the most about whether the function was implemented correctly?) Write out the inputs and expected output of these six tests, and explain why you would choose them. Do not worry about error handling (yet).

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write out the inputs and expected output of these six tests
Reference No:- TGS02695316

Expected delivery within 24 Hours