Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

Unit test for uno.playCard #172

Open
logan-hendricks opened this issue Aug 3, 2020 · 0 comments
Open

Unit test for uno.playCard #172

logan-hendricks opened this issue Aug 3, 2020 · 0 comments

Comments

@logan-hendricks
Copy link
Collaborator

uno.go has a method by the name of playCard. This particular method does not have any unit tests created for it.

Write a unit test that sets up the data in the database for an entire game.

  1. Create the game
  2. Add a player to the game
  3. Start the game.

Grab one card from the player's hand, and submit it to playCard
Confirm that on calling playCard the player's hand is now missing that card.
Confirm the card is in the top of the discard pile in the game

@ghost ghost self-assigned this Aug 3, 2020
@ghost ghost linked a pull request Aug 5, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant