github.com/gorgonia/agogo@v0.1.1/game/wq/game_test.go (about) 1 package 围碁 2 3 import ( 4 "testing" 5 6 "github.com/gorgonia/agogo/game" 7 ) 8 9 func TestGameBasics(t *testing.T) { 10 g := New(19, 0, 7.5) 11 g2 := g.Clone() 12 if !g.Eq(g2) { 13 t.Fatal("Expected clones to be equal") 14 } 15 16 g.SetToMove(game.Player(game.White)) 17 if g.Eq(g2) { 18 t.Fatal("Expected clones to be unequal after the parent object has changed") 19 } 20 }