From 9b8d4c7461021338fe2ebedb11b9b1e095f0defe Mon Sep 17 00:00:00 2001 From: Ben Cragg Date: Tue, 29 Jan 2019 09:39:44 +0000 Subject: [PATCH] moved rect test struct --- geometry_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/geometry_test.go b/geometry_test.go index fc6e3fb..0638837 100644 --- a/geometry_test.go +++ b/geometry_test.go @@ -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)