Skip to content

Commit 86b64e1

Browse files
committed
Add tests for player init
1 parent c6f0f3a commit 86b64e1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/test_player.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from axelrod_fortran.strategies import all_strategies
2+
from axelrod_fortran.player import Player
3+
from ctypes import c_int
4+
5+
6+
def test_init():
7+
for strategy in all_strategies:
8+
player = Player(strategy)
9+
assert player.original_name == strategy
10+
assert player.original_function.restype == c_int

0 commit comments

Comments
 (0)