Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
teelau committed May 24, 2018
1 parent 08186cb commit 0b03ca8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/models/player_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ const (
TestColor = "blue"
)

var (
centerPos = Position{TestWidth / 2, TestHeight / 2}
)
var centerPos = Position{TestWidth / 2, TestHeight / 2}

func TestAddPoints(t *testing.T) {
p := new(Player)
Expand Down Expand Up @@ -99,6 +97,7 @@ func TestUpdatePosition(t *testing.T) {
}
}
p.Controls.Left = false
p.Controls.Right = false
//Up
//Friction
prevMagnitude := p.Velocity.magnitude()
Expand Down

0 comments on commit 0b03ca8

Please sign in to comment.