Skip to content

Commit

Permalink
Added test file for team balance
Browse files Browse the repository at this point in the history
  • Loading branch information
sickboyyy committed Feb 10, 2021
1 parent c1b2593 commit 3af8efe
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test_balance.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import numpy as np
from teambalance.balance import Balance

def test_team_balance():
ratings_G = np.round(np.random.normal(1500, 300, 12),0)
rds_G = np.array([90]*12)

game_mode = "3v3v3v3"

b = Balance()
teams_footies = b.find_best_game(ratings_G, rds_G, game_mode)

sets = len(b.superset[game_mode])
assert sets == 15400

0 comments on commit 3af8efe

Please sign in to comment.