def setup(self): self.n = 5 self.k = 3 self.m = comb(self.n, self.k, exact=True) self.g = tournament_game(self.n, self.k)
def test_seed(self): seed = 0 g0 = tournament_game(self.n, self.k, random_state=seed) g1 = tournament_game(self.n, self.k, random_state=seed) assert_array_equal(g1.payoff_profile_array, g0.payoff_profile_array)
def test_raises_value_error_too_large_inputs(self): n, k = 100, 50 g = tournament_game(n, k)
def setUp(self): self.n = 5 self.k = 3 self.m = comb(self.n, self.k, exact=True) self.g = tournament_game(self.n, self.k)
def test_raises_value_error_too_large_inputs(self): n, k = 100, 50 tournament_game(n, k)