Implement a command queue on the world
Not currently executed
This commit is contained in:
parent
e3ce87e964
commit
0a0a32cf58
6 changed files with 120 additions and 15 deletions
|
@ -24,7 +24,7 @@ func TestCommand_Move(t *testing.T) {
|
|||
duration := 1
|
||||
// Try the move command
|
||||
moveCommand := Command{Command: CommandMove, Bearing: bearing.String(), Duration: duration}
|
||||
assert.NoError(t, world.Execute(a, moveCommand), "Failed to execute move command")
|
||||
assert.NoError(t, world.Enqueue(a, moveCommand), "Failed to execute move command")
|
||||
|
||||
newpos, err := world.RoverPosition(a)
|
||||
assert.NoError(t, err, "Failed to set position for rover")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue