moved rect test struct

This commit is contained in:
Ben Cragg 2019-01-29 09:39:44 +00:00
parent a56f7fa422
commit 9b8d4c7461
1 changed files with 4 additions and 5 deletions

View File

@ -9,12 +9,11 @@ import (
"github.com/faiface/pixel"
)
type rectTestTransform struct {
name string
f func(pixel.Rect) pixel.Rect
}
func TestResizeRect(t *testing.T) {
type rectTestTransform struct {
name string
f func(pixel.Rect) pixel.Rect
}
// rectangles
squareAroundOrigin := pixel.R(-10, -10, 10, 10)