diff --git a/robot_test.go b/robot_test.go index 204424d..329a20c 100644 --- a/robot_test.go +++ b/robot_test.go @@ -14,7 +14,7 @@ func init() { func TestCollision(t *testing.T) { tests := []struct { - g game + g Game r Robot target v.Vector2d location *v.Point2d @@ -22,7 +22,7 @@ func TestCollision(t *testing.T) { }{ // should intersect with first box { - g: game{ + g: Game{ width: 800, height: 400, obstacles: []Obstacle{ @@ -50,7 +50,7 @@ func TestCollision(t *testing.T) { }, // shouldn't intersect at all { - g: game{ + g: Game{ width: 800, height: 400, obstacles: []Obstacle{ @@ -97,7 +97,7 @@ func TestBotBotCollisions(t *testing.T) { } func TestProbeResultType(t *testing.T) { - g := game{ + g := Game{ width: 800, height: 400, obstacles: []Obstacle{