Metria-Project / Metria-Test

0 stars 0 forks source link

suggestion of a test for the method _Intersectionpoint in LineSegment #13

Open cyromd opened 6 years ago

cyromd commented 6 years ago

under this input: Base=(A,B) A=(0,0) B=(2,0) l: alfa=(1,0) beta=(1,0) the following output: Retorno=(1,1) is supposed to be seen

under this input: Base=(A,B) A=(0,0) B=(3,0) l: alfa=(3,0) beta=(5,0) the following output: Retorno=(3,0) is supposed to be seen

under this input: Base=(A,B) A=(0,0) B=(1,1) l: alfa=(0,0) beta=(2,0) the following output: infinites points is supposed to be seen

under this input: Base=(A,B) A=(0,0) B=(2,0) l: alfa=(5,0) beta=(12,0) the following output: Retorno=null is supposed to be seen

under this input: Base=(A,B) A=(0,0) B=(1,1) l: alfa=(5,0) beta=(5,0) the following output: Retorno=null is supposed to be seen

cyromd commented 6 years ago

o teste 1 foi implementado errado. a cut line deveria ser Line cut = new Line( new Point(1,0), new Point(1,0))

cyromd commented 6 years ago

no teste 3 a cut line e o line segment estao invertidos. além de que um dos pontos está errado, o certo seria: Line cut = new LineSegment( new Point(0,0) , new Point(2,0)) LineSegment_base = new Line( new Point(1,1), new Point(0,0))

cyromd commented 6 years ago

No teste 5 o LineSegment_base está errado, o certo seria: LineSegment _base = new LineSegment( new Point(0,0), new Point(1,1))

Supitto commented 6 years ago

===

Code _73 Place _2_hyperbolic_linesegment.cs Process Create a line segment from (0,0) WRONG

===

Code _74 Place _2_hyperbolic_linesegment.cs Process Create a line segment from (0,0) WRONG

===

Code _75 Place _2_hyperbolic_linesegment.cs Process Create a line segment from (0,0) WRONG

===

Code _76 Place _2_hyperbolic_linesegment.cs Process Create a line segment from (0,0) WRONG

===

Code _77 Place _2_hyperbolic_linesegment.cs Process Create a line segment from (0,0) WRONG

cyromd commented 6 years ago

Code _73 Place _2_hyperbolic_line.cs Process Create a line segment from (1,2) to (4,2) and call it l Create a line from (2.5,1) to (2.5,2) and call it t Intersect l with t and call it p Check p == new Point(2.5,2.5)

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

Code _75 Place _2_hyperbolic_line.cs Process do not need to run because the test 73 has same goal (o teste 75 foi feito pra testar a mesma coisa que é testada no teste 73 e creio ser desnecessário testar isso duas vezes, então pode pular esse)

Code _76 Place _2_hyperbolic_line.cs Process Create a line segment from (1,2) to (4,2) and call it l Create a line from (5,0) to (13,0) and call it t Intersect l with t and call it p Check p == null

Code _77 Place _2_hyperbolic_line.cs Process Create a line segment from (1,2) to (4,2) and call it l Create a line from (5,0) to (5,1) and call it t Intersect l with t and call it p Check p == null

cyromd commented 6 years ago

OK (para os que eu refiz)