From 330e72c21f589bbadac4eeddc7bdc45bf8f9f16f Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Sat, 29 Mar 2014 01:17:33 -0700 Subject: [PATCH] Fixed unittests --- robot_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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{