Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions tests/test_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,19 @@ def test_implemented_strategies():
interactions = match.play()
axl_match = Match((axl_player, opponent))
assert interactions == axl_match.play(), (player, opponent)

def test_champion_v_alternator():
"""
Specific regression test for a bug.
"""
player = Player("k61r")
opponent = Alternator()

match = Match((player, opponent))

seed(0)
interactions = match.play()
assert interactions[25:30] == [(C, D), (C, C), (C, D), (D, C), (C, D)]

seed(0)
assert interactions == match.play()