Harry de Boer преди 10 години
родител
ревизия
77ae5bac93
променени са 1 файла, в които са добавени 0 реда и са изтрити 49 реда
  1. 0 49
      game/games_test.go

+ 0 - 49
game/games_test.go

@@ -1,49 +0,0 @@
-package game
-
-import (
-	"testing"
-)
-
-func TestAddGame(t *testing.T) {
-
-	game := NewGame(100,100)
-	games := New()
-
-	games.AddGame(game)
-	if len(games.ListGames()) != 1 {
-		t.Fatalf("Incorrect ListGames size expeciting 1 got %v", len(games.ListGames()))
-	}
-}
-
-func TestAdd2Games(t *testing.T) {
-
-	game := NewGame(100,100)
-	game2 := NewGame(100,100)
-	games := New()
-
-	games.AddGame(game)
-	games.AddGame(game2)
-	if len(games.ListGames()) != 2 {
-		t.Fatalf("Incorrect ListGames size expeciting 2 got %v", len(games.ListGames()))
-	}
-
-	if games.ListGames()[0].Id != game.Id {
-		t.Fatalf("Incorrect gameid expected %v got %v", games.ListGames()[0].Id, game.Id)
-	}
-}
-
-func TestAddGetGame(t *testing.T) {
-
-	game := NewGame(100,100)
-	game2 := NewGame(100,100)
-	game3 := NewGame(100,100)
-	games := New()
-
-	games.AddGame(game)
-	games.AddGame(game2)
-	games.AddGame(game3)
-	resultGame := games.GetGame(game2.Id)
-	if  resultGame.Id != game2.Id {
-		t.Fatalf("Incorrect ListGames size expeciting %v got %v", resultGame.Id, game2.Id)
-	}
-}