projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Factor out EIGHT_BIT_SCALE.
[naja.git]
/
naja
/
tests
/
test_actions.py
diff --git
a/naja/tests/test_actions.py
b/naja/tests/test_actions.py
index d2c723a6b4082c0135da73565a44d0862afab361..69ed8819ed54c80be1d87e89fe6eef8f931f931b 100644
(file)
--- a/
naja/tests/test_actions.py
+++ b/
naja/tests/test_actions.py
@@
-8,7
+8,10
@@
from naja import actions
class TestActions(TestCase):
def make_player(self, *bits):
class TestActions(TestCase):
def make_player(self, *bits):
- return Player(sum(1 << bit for bit in bits), None)
+ player_bits = 0
+ for bit in bits:
+ player_bits |= bit
+ return Player(player_bits, None)
def make_board(self, player_bits=None, locations=None):
if locations is None:
def make_board(self, player_bits=None, locations=None):
if locations is None: