Simplify duplicate command types

This commit is contained in:
Marc Di Luzio 2020-06-06 12:45:45 +01:00
parent 97d3583384
commit e3ce87e964
8 changed files with 28 additions and 56 deletions

View file

@ -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,
},