Update score/ranking models for 2020.

This commit is contained in:
Patrick Fairbank
2020-03-18 22:42:36 -07:00
parent 24a069d959
commit afcaa0e07c
19 changed files with 549 additions and 530 deletions

View File

@@ -4,6 +4,7 @@
package model
import (
"github.com/Team254/cheesy-arena/game"
"github.com/stretchr/testify/assert"
"testing"
)
@@ -25,7 +26,7 @@ func TestMatchResultCrud(t *testing.T) {
assert.Nil(t, err)
assert.Equal(t, matchResult, matchResult2)
matchResult.BlueScore.RobotEndLevels = [3]int{3, 3, 3}
matchResult.BlueScore.EndgameStatuses = [3]game.EndgameStatus{game.Hang, game.None, game.Park}
db.SaveMatchResult(matchResult)
matchResult2, err = db.GetMatchResultForMatch(254)
assert.Nil(t, err)