moved rect test struct
This commit is contained in:
parent
a56f7fa422
commit
9b8d4c7461
|
@ -9,13 +9,12 @@ import (
|
|||
"github.com/faiface/pixel"
|
||||
)
|
||||
|
||||
func TestResizeRect(t *testing.T) {
|
||||
type rectTestTransform struct {
|
||||
name string
|
||||
f func(pixel.Rect) pixel.Rect
|
||||
}
|
||||
|
||||
func TestResizeRect(t *testing.T) {
|
||||
|
||||
// rectangles
|
||||
squareAroundOrigin := pixel.R(-10, -10, 10, 10)
|
||||
squareAround2020 := pixel.R(10, 10, 30, 30)
|
||||
|
|
Loading…
Reference in New Issue