We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 008a53f + 0f620e2 commit 647106dCopy full SHA for 647106d
tests/test_player.py
@@ -2,6 +2,9 @@
2
from axelrod_fortran.player import Player
3
from ctypes import c_int
4
5
+from hypothesis import given
6
+from hypothesis.strategies import integers
7
+
8
9
def test_init():
10
for strategy in all_strategies:
@@ -10,7 +13,10 @@ def test_init():
13
assert player.original_function.restype == c_int
11
14
12
15
-def test_strategy():
16
+@given(last_move=integers(min_value=0, max_value=1),
17
+ score=integers(min_value=0, max_value=200))
18
+def test_strategy(last_move, score):
19
+ print(last_move, score)
20
21
player = Player(strategy)
22
0 commit comments