File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
plugin/src/test/sc/plugin2021 Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -7,17 +7,14 @@ import sc.shared.PlayerScore
7
7
import sc.shared.ScoreCause
8
8
9
9
class GameTest : StringSpec ({
10
- " Start and stop " {
10
+ " Game starting and stopping works " {
11
11
Color .BLUE .team
12
12
val game = Game ()
13
13
val state = game.gameState
14
- val playerOne = game.onPlayerJoined()
15
- val playerTwo = game.onPlayerJoined()
14
+ game.onPlayerJoined() shouldBe Team . ONE
15
+ game.onPlayerJoined() shouldBe Team . TWO
16
16
17
- playerOne.color shouldBe Team .ONE
18
- playerTwo.color shouldBe Team .TWO
19
17
game.start()
20
-
21
18
game.onAction(state.currentPlayer, PassMove (state.currentColor))
22
19
game.onAction(state.currentPlayer, PassMove (state.currentColor))
23
20
game.onAction(state.currentPlayer, PassMove (state.currentColor))
You can’t perform that action at this time.
0 commit comments