-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Better balance display Sort players by rating desc Add trophy icon Fix the team id * Show stdev and fix bug in respect_avoids Fix failing tests * Better display on balance tab
- Loading branch information
Showing
5 changed files
with
117 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
defmodule TeiserverWeb.Battle.MatchLive.ShowTest do | ||
alias TeiserverWeb.Battle.MatchLive.Show | ||
use ExUnit.Case | ||
|
||
test "get team id" do | ||
team_players = %{1 => [1, 4], 2 => [2, 3]} | ||
player_id = 4 | ||
result = Show.get_team_id(player_id, team_players) | ||
assert result == 0 | ||
|
||
player_id = 3 | ||
result = Show.get_team_id(player_id, team_players) | ||
assert result == 1 | ||
end | ||
end |