File tree Expand file tree Collapse file tree 2 files changed +23
-5
lines changed
plugin/src/test/sc/plugin2020 Expand file tree Collapse file tree 2 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 1+ package sc.plugin2020
2+
3+ import io.kotlintest.shouldBe
4+ import io.kotlintest.specs.StringSpec
5+ import sc.framework.plugins.Player
6+ import sc.shared.PlayerColor
7+
8+ class CloneTest : StringSpec ({
9+ " clone Player" {
10+ val player = Player (PlayerColor .RED , "aPlayer")
11+ player.clone() shouldBe player
12+ }
13+ " clone Board" {
14+ val board = Board ()
15+ board.clone() shouldBe board
16+ }
17+ " clone GameState" {
18+ val state = GameState (blue = Player (PlayerColor .BLUE , "aBluePlayer"), turn = 5)
19+ val clone = state.clone()
20+ clone shouldBe state
21+ clone.getDeployedPieces(PlayerColor .RED ) shouldBe state.getDeployedPieces(PlayerColor .RED )
22+ }
23+ })
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments