projects
/
naja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Player position is always a valid move.
[naja.git]
/
naja
/
tests
/
test_player.py
diff --git
a/naja/tests/test_player.py
b/naja/tests/test_player.py
index cbae8cc23c03580a14f26f9f9043a90ba124b680..31cc8173395b53d7ae9a6147d06938a0e20cb6a9 100644
(file)
--- a/
naja/tests/test_player.py
+++ b/
naja/tests/test_player.py
@@
-161,9
+161,9
@@
class TestPlayer(TestCase):
def test_legal_moves_all_available(self):
player = Player(0x0f, (2, 2))
self.assertEqual(
def test_legal_moves_all_available(self):
player = Player(0x0f, (2, 2))
self.assertEqual(
- player.legal_moves(), [(2, 1), (2, 3), (3, 2), (1, 2)])
+ player.legal_moves(), [(2,
2), (2,
1), (2, 3), (3, 2), (1, 2)])
def test_legal_moves_some_unavailable(self):
player = Player(0x0f, (0, 2))
player.bits.clear_bit(BITS.NORTH)
def test_legal_moves_some_unavailable(self):
player = Player(0x0f, (0, 2))
player.bits.clear_bit(BITS.NORTH)
- self.assertEqual(player.legal_moves(), [(0, 3), (1, 2)])
+ self.assertEqual(player.legal_moves(), [(0,
2), (0,
3), (1, 2)])