add game_test.go
This commit is contained in:
parent
b63c21f6b0
commit
d477bec7ea
1 changed files with 12 additions and 0 deletions
12
engine/game_test.go
Normal file
12
engine/game_test.go
Normal 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)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue