Simplify duplicate command types
This commit is contained in:
parent
97d3583384
commit
e3ce87e964
8 changed files with 28 additions and 56 deletions
|
@ -6,6 +6,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"github.com/mdiluz/rove/pkg/game"
|
||||
"github.com/mdiluz/rove/pkg/rove"
|
||||
"github.com/mdiluz/rove/pkg/server"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
@ -95,9 +96,9 @@ func TestServer_Command(t *testing.T) {
|
|||
assert.True(t, r2.Success)
|
||||
|
||||
c := rove.CommandData{
|
||||
Commands: []rove.Command{
|
||||
Commands: []game.Command{
|
||||
{
|
||||
Command: rove.CommandMove,
|
||||
Command: game.CommandMove,
|
||||
Bearing: "N",
|
||||
Duration: 1,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue