Fixed unittests

This commit is contained in:
sm
2014-03-31 23:21:18 -07:00
parent 81beee8b43
commit 330e72c21f
+4 -4
View File
@@ -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{