Fixed unittests

This commit is contained in:
Stephen McQuay 2014-03-29 01:17:33 -07:00
parent 81beee8b43
commit 330e72c21f

View File

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