moved rect test struct

This commit is contained in:
Ben Cragg 2019-01-29 09:39:44 +00:00
parent 16722d55e1
commit 620c551f70
1 changed files with 5 additions and 5 deletions

View File

@ -10,12 +10,12 @@ import (
"github.com/stretchr/testify/assert"
)
type rectTestTransform struct {
name string
f func(pixel.Rect) pixel.Rect
}
func TestRect_Resize(t *testing.T) {
type rectTestTransform struct {
name string
f func(pixel.Rect) pixel.Rect
}
// rectangles
squareAroundOrigin := pixel.R(-10, -10, 10, 10)
squareAround2020 := pixel.R(10, 10, 30, 30)