De-scope, remove rover speed
This commit is contained in:
parent
a84709564c
commit
db3c2c2c2e
9 changed files with 51 additions and 86 deletions
|
@ -16,9 +16,6 @@ func TestCommand_Move(t *testing.T) {
|
|||
Y: 2.0,
|
||||
}
|
||||
|
||||
attribs, err := world.RoverAttributes(a)
|
||||
assert.NoError(t, err, "Failed to get rover attribs")
|
||||
|
||||
err = world.WarpRover(a, pos)
|
||||
assert.NoError(t, err, "Failed to set position for rover")
|
||||
|
||||
|
@ -33,6 +30,6 @@ func TestCommand_Move(t *testing.T) {
|
|||
|
||||
newPos, err := world.RoverPosition(a)
|
||||
assert.NoError(t, err, "Failed to set position for rover")
|
||||
pos.Add(vector.Vector{X: 0.0, Y: int(duration) * int(attribs.Speed)}) // We should have moved duration*speed north
|
||||
pos.Add(vector.Vector{X: 0.0, Y: int(duration)})
|
||||
assert.Equal(t, pos, newPos, "Failed to correctly set position for rover")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue