aboutsummaryrefslogtreecommitdiff
path: root/config/game_test.go
blob: d295ce2b02b19df00075ec368990d548e2e79b10 (plain)
1
2
3
4
5
6
7
8
9
10
package config

import "testing"

func TestGameValidate(t *testing.T) {
	empty := Game{}
	if err := empty.validate("invalid game name because of spaces"); err == nil {
		t.Fatal("invalid game name")
	}
}