Browse Source

Fixed unittests

master
Stephen McQuay 6 years ago
parent
commit
330e72c21f
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      robot_test.go

+ 4
- 4
robot_test.go 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{

Loading…
Cancel
Save