Skip to content

Commit

Permalink
Merge pull request #904 from Axelrod-Python/match-generator-tests
Browse files Browse the repository at this point in the history
Add missing match generator tests
  • Loading branch information
drvinceknight authored Mar 14, 2017
2 parents c47a43e + 1914265 commit cb290da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions axelrod/tests/unit/test_match_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,12 @@ class TestSpatialMatches(unittest.TestCase):
def setUpClass(cls):
cls.players = [s() for s in test_strategies]

def test_init(self):
edges = [(0, 1), (1, 2)]
with self.assertRaises(ValueError):
axelrod.SpatialMatches(
self.players, 3, test_game, 5, edges, noise=0)

@given(repetitions=integers(min_value=1, max_value=test_repetitions),
turns=integers(min_value=1, max_value=test_turns),
noise=floats(min_value=0, max_value=1))
Expand Down

0 comments on commit cb290da

Please sign in to comment.