Skip to content

Commit

Permalink
Removing commented out tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bcvery1 committed May 10, 2020
1 parent 8792d44 commit 76534cb
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions geometry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1279,36 +1279,36 @@ func TestLine_IntersectRect(t *testing.T) {
args args
want pixel.Vec
}{
//{
// name: "Line through rect vertically",
// fields: fields{A: pixel.V(0, 0), B: pixel.V(0, 10)},
// args: args{r: pixel.R(-1, 1, 5, 5)},
// want: pixel.V(-1, 0),
//},
//{
// name: "Line through rect horizontally",
// fields: fields{A: pixel.V(0, 1), B: pixel.V(10, 1)},
// args: args{r: pixel.R(1, 0, 5, 5)},
// want: pixel.V(0, -1),
//},
//{
// name: "Line through rect diagonally bottom and left edges",
// fields: fields{A: pixel.V(0, 0), B: pixel.V(10, 10)},
// args: args{r: pixel.R(0, 2, 3, 3)},
// want: pixel.V(-1, 1),
//},
//{
// name: "Line through rect diagonally top and right edges",
// fields: fields{A: pixel.V(10, 0), B: pixel.V(0, 10)},
// args: args{r: pixel.R(5, 0, 8, 3)},
// want: pixel.V(-2.5, -2.5),
//},
//{
// name: "Line with not rect intersect",
// fields: fields{A: pixel.V(0, 0), B: pixel.V(10, 10)},
// args: args{r: pixel.R(20, 20, 21, 21)},
// want: pixel.ZV,
//},
{
name: "Line through rect vertically",
fields: fields{A: pixel.V(0, 0), B: pixel.V(0, 10)},
args: args{r: pixel.R(-1, 1, 5, 5)},
want: pixel.V(-1, 0),
},
{
name: "Line through rect horizontally",
fields: fields{A: pixel.V(0, 1), B: pixel.V(10, 1)},
args: args{r: pixel.R(1, 0, 5, 5)},
want: pixel.V(0, -1),
},
{
name: "Line through rect diagonally bottom and left edges",
fields: fields{A: pixel.V(0, 0), B: pixel.V(10, 10)},
args: args{r: pixel.R(0, 2, 3, 3)},
want: pixel.V(-1, 1),
},
{
name: "Line through rect diagonally top and right edges",
fields: fields{A: pixel.V(10, 0), B: pixel.V(0, 10)},
args: args{r: pixel.R(5, 0, 8, 3)},
want: pixel.V(-2.5, -2.5),
},
{
name: "Line with not rect intersect",
fields: fields{A: pixel.V(0, 0), B: pixel.V(10, 10)},
args: args{r: pixel.R(20, 20, 21, 21)},
want: pixel.ZV,
},
{
name: "Line intersects at 0,0",
fields: fields{A: pixel.V(0, -10), B: pixel.V(0, 10)},
Expand Down

0 comments on commit 76534cb

Please sign in to comment.