Skip to content

Commit 497e899

Browse files
Update game over messages for consistency and clarity
1 parent a91e752 commit 497e899

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

internal/rockpaperscissors/rockpaperscissors_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,19 +277,19 @@ func TestGame_getGameOverMessage(t *testing.T) {
277277
name: "Player wins",
278278
playerScore: 2,
279279
computerScore: 1,
280-
wantMsgContains: "You win the match",
280+
wantMsgContains: "GAME OVER: Player WINS",
281281
},
282282
{
283283
name: "Computer wins",
284284
playerScore: 1,
285285
computerScore: 2,
286-
wantMsgContains: "Computer wins the match",
286+
wantMsgContains: "GAME OVER: Player LOSES",
287287
},
288288
{
289289
name: "Draw",
290290
playerScore: 1,
291291
computerScore: 1,
292-
wantMsgContains: "The match is a draw",
292+
wantMsgContains: "GAME OVER: DRAW",
293293
},
294294
}
295295
for _, tt := range tests {

0 commit comments

Comments
 (0)