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

Commit

Permalink
clean up merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
joecoppin committed Aug 4, 2020
1 parent f6fefb2 commit 88ebb73
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 50 deletions.
20 changes: 0 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 0 additions & 30 deletions server/uno_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,6 @@ func setupGameWithPlayer(database *db.DB) (*model.Game, *model.Player) {
return game, player
}

<<<<<<< HEAD
func TestContains(t *testing.T) {
// setup test data
var data []string = []string{}
data = append(data, "Test")

// check to see if "Test" is found in the correct index
index, found := contains(data, "Test")
assert.Equal(t, index, 0)
assert.Equal(t, found, true)

// make sure a missing string is not found at any index
index, found = contains(data, "Invalid entry")
assert.Equal(t, index, -1)
assert.Equal(t, found, false)
}

func TestCheckForWinner(t *testing.T) {
players = []string{"player1", "player2"}
allCards = make(map[string][]model.Card)
assert.Equal(t, "player1", checkForWinner())
dealCards()
assert.Equal(t, "", checkForWinner())
allCards[players[0]] = make([]model.Card, 0)
assert.Equal(t, "player1", checkForWinner())
allCards[players[0]] = make([]model.Card, 5)
allCards[players[1]] = make([]model.Card, 0)
assert.Equal(t, "player2", checkForWinner())
=======
func TestDrawCard(t *testing.T) {

// Test passing in a bogus game id, we should get an error
Expand Down Expand Up @@ -200,7 +171,6 @@ func TestDealCards(t *testing.T) {
assert.Equal(t, 180, len(game.DrawPile))
assert.Equal(t, 1, len(game.DiscardPile))

>>>>>>> dev
}

func TestCheckForCardInHand(t *testing.T){
Expand Down

0 comments on commit 88ebb73

Please sign in to comment.