add game_test.go

This commit is contained in:
Josh Deprez 2021-09-27 17:15:51 +10:00
parent b63c21f6b0
commit d477bec7ea

12
engine/game_test.go Normal file
View file

@ -0,0 +1,12 @@
package engine
import "testing"
func TestGameLoadAndPrepare(t *testing.T) {
g := &Game{
Root: fakeDrawBoxer("fake"),
}
if err := g.LoadAndPrepare(nil); err != nil {
t.Errorf("LoadAndPrepare(nil) = %v, want nil", err)
}
}