Metria-Project / Metria-Test

0 stars 0 forks source link

suggestion of a test in Line for the IntersectionPoint (REWRITE TEST) #22

Open cyromd opened 6 years ago

cyromd commented 6 years ago

under this input: l=(A,B) A=(-3,0) B=(-9,0) this=(A,B) A=(-9,0) B=(-3,0) the following output: "The lines intersect in infinty points" is supposed to be seen

under this input: l=(A,B) A=(-9,6) B=(-4,1) this=(A,B) A=(-9,6) B=(-4,1) the following output: "The lines intersect in infinty points" is supposed to be seen

under this input: l=(A,B) A=(-9,0) B=(-4,0) this=(A,B) A=(-9,0) B=(-4,0) the following output: "The lines intersect in infinty points" is supposed to be seen

under this input: l=(A,B) A=(2,1) B=(2,12) this=(A,B) A=(2,12) B=(2,11.9998) the following output: "The lines intersect in infinty points" is supposed to be seen

under this input: l=(A,B) A=(2,1) B=(2,12) this=(A,B) A=(2,12) B=(2,5) the following output: "The lines intersect in infinty points" is supposed to be seen

under this input: l=(A,B) A=(2,1) B=(2,12) this=(A,B) A=(2.0002,12) B=(2.0002,5) the following output: null is supposed to be seen

under this input: l=(A,B) A=(4,1) B=(6,12) this=(A,B) A=(4.0002,1.0002) B=(6.0002,12.0002) the following output: null is supposed to be seen

under this input: l=(A,B) A=(4,0) B=(6,0) this=(A,B) A=(3,0) B=(8,0) the following output: null is supposed to be seen

under this input: l=(A,B) A=(4,1) B=(4,12) this=(A,B) A=(7,0) B=(7,10) the following output: null is supposed to be seen

under this input: l=(A,B) A=(-2,0) B=(2,0) this=(A,B) A=(-5,0) B=(-2,0) the following output: Point=(-2,0) is supposed to be seen

under this input: l=(A,B) A=(2,0) B=(4,0) this=(A,B) A=(1,0) B=(3,1) the following output: Point=(3,1) is supposed to be seen

under this input: l=(A,B) A=(2,0) B=(4,0) this=(A,B) A=(1,0) B=(3.5,0) the following output: Point=(3,1) is supposed to be seen

Supitto commented 6 years ago

===

Code _112 Place _2_hyperbolic_line.cs Process Create a line from (-3,0) to (-9,0) and call it l Create a line from (-9,0) to (-3,0) and call it m Check Intersect l with t m shall raise a exception

===

Code _113 Place _2_hyperbolic_line.cs Process Create a line from (-9,6) to (-4,1) and call it l Create a line from (-9,6) to (-4,1) and call it m Check Interscet l with m shall raise an exception

===

Code _114 Place _2_hyperbolic_line.cs Process Create a line from (-9,0) to (-4,0) and call it l Create a line from (-9,0) to (-4,0) and call it m Check Intersect l with m shall raise an exception

===

Code _115 Place _2_hyperbolic_line.cs Process Create a line from (2,1) to (2,12) and call it l Create a line from (2,1) to (2,11.9998) and call it m Check Intersect l with m shall raise an exception

===

Code _116 Place _2_hyperbolic_line.cs Process Create a line from (2,1) to (2,12) and call it l Create a line from (2,12) to (2,5) and call it m Check Intersect l with m shall raise an exception

===

Code _117 Place _2_hyperbolic_line.cs Process Create a line from (2,1) to (2,12) and call it l Create a line from (2.0002,12) to (2.0002,5) and call it m Check Intersect l with m is null

===

Code _118 Place _2_hyperbolic_line.cs Process Create a line from (4,1) to (6,12) and call it l Create a line from (4.0002,1.0002) to (6.0002,12.0002) and call it m Check Intersect l with m is null

===

Code _119 Place _2_hyperbolic_line.cs Process Create a line from (4,0) to (6,0) and call it l Create a line from (3,0) to (8,0) and call it m Check Intersect l with m is null

===

Code _120 Place _2_hyperbolic_line.cs Process Create a line from (4,1) to (4,12) and call it l Create a line from (7,0) to (7,10) and call it m Check Intersect l with m is null

===

Code _121 Place _2_hyperbolic_line.cs Process Create a line from (-2,0) to (2,0) and call it l Create a line from (-5,0) to (-2,0) and call it m Itersect l with m and call it p Check p == new Point(-2,0)

===

Code _122 Place _2_hyperbolic_line.cs Process Create a line from (2,0) to (4,0) and call it l Create a line from (1,0) to (3,1) and call it m Intersect l with m and call it p Check p == new Point(3,1)

===

Code _123 Place _2_hyperbolic_line.cs Process Create a line from (2,0) to (4,0) and call it l Create a line from (1,0) to (3.5,0) and call it m Check p == new Point(3,1)

cyromd commented 6 years ago

OK